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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f7abd79ae8d7f73be6caf80979087ffde251930 | b8c24a63d6871da9039e234aecb14f2eb6ff71f5 | /1MD3/Tutorial 4/Q4_voineat.py | be298feb418eebcafd9431c39881ea72d5864fd5 | [] | no_license | teovoinea/First-Year-Assignments | e3eeea9eba08bbacdf996e06b31b4b7861d805a6 | 6f8b02f17aab5562154cc59e0e2b76277779f1c9 | refs/heads/master | 2020-05-17T03:28:37.655057 | 2015-04-13T19:16:08 | 2015-04-13T19:16:08 | 33,888,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | def main():
word = input("Please enter a word")
print(pluralplus(word))
def pluralplus(w):
if w.endswith('s') or w.endswith('h'):
return w + 'es'
elif w.endswith('y'):
return w[:-1]+'ies'
else:
return w+'s'
main()
| [
"voinea.teodor@gmail.com"
] | voinea.teodor@gmail.com |
027ed53d0d391de223c657cc4c16bd4a060e7526 | ec4d4509d9ec9885f7f1461efde321f38c1df62c | /app/routes/__init__.py | e809ae620abd590324c01462bfcd51a8624cfa93 | [] | no_license | skollhati/CLACK | d60071479c38feab871f1216affc22a84f23655f | 34b451d389785d7c38ef4a54c4e01f148f224844 | refs/heads/master | 2020-07-28T02:46:13.592736 | 2019-10-25T03:54:30 | 2019-10-25T03:54:30 | 209,284,253 | 0 | 0 | null | 2020-07-18T14:54:41 | 2019-09-18T10:45:43 | CSS | UTF-8 | Python | false | false | 98 | py | from app import app
from flask import render_template, request, session
from app.models import *
| [
"df201901@gmail.com"
] | df201901@gmail.com |
52b921495921259eff0bf10fb855d93cbd453564 | e20cecb5c34959321a281370c489ae3994fbc78c | /COVID_gif.py | 65259039f36b6ed9e54ed2054e1f8eaa5e92b47e | [
"MIT"
] | permissive | JackLidge/COVIDtracker | 3b51500a153e26f87a2516471f543ac44117f036 | 0432d52910a00c987f9b942215f921923ed9a62b | refs/heads/master | 2022-11-28T15:34:46.177421 | 2020-08-14T22:57:38 | 2020-08-14T22:57:38 | 287,638,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.offsetbox import OffsetImage, AnnotationBbox
import rona_db
results = rona_db.window()
results.window.mainloop()
countries_of_interest = results.country_list
countries_of_interest = [i.strip("''") for i in cou... | [
"jrglmusic@gmail.com"
] | jrglmusic@gmail.com |
031865b6ba4042039e83272cc66a8a9da5c92a56 | 199f34ce3f9cb80375007aae9c8f430116a0d5e1 | /profiles_api/permissions.py | 66e662b32f5d153b2b0a3251a65098cf6ed8601a | [
"MIT"
] | permissive | Ina02/profiles-rest-api | 0ea2c69c117e7e38a2d92b28930ec1adf445f260 | c34060ababc7a47b7f1118e0c359d9149841db61 | refs/heads/main | 2023-01-21T19:35:47.534718 | 2020-11-29T11:09:09 | 2020-11-29T11:09:09 | 313,114,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | from rest_framework import permissions
class UpdateOwnProfile(permissions.BasePermission):
"""Allow user to edit their own profile"""
def has_object_permission(self, request, view, obj):
"""Check user is trying to edit their own profile"""
if request.method in permissions.SAFE_METHODS:
... | [
"engineerina@gmail.com"
] | engineerina@gmail.com |
81583590dd9cb00328114f5f8f2a1c2ad16662c0 | fbb99f2e82241be1562a890e4020c64278140167 | /layers/modules/__init__.py | 8d5e7e3faceee32409716a6c8089799c49eaee71 | [
"MIT"
] | permissive | lcwbupt/deepv_pytorch_ | e041ef22303a5cbcb6c3d682d22cfabffd306050 | f25a80d2b1beb64fb8148fe16ece3b35aa2362de | refs/heads/master | 2020-03-19T05:54:46.448094 | 2018-06-23T01:07:44 | 2018-06-23T01:07:44 | 135,973,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from .l2norm import L2Norm
from .multibox_loss import MultiBoxLoss
from .repulsion_loss import RepulsionLoss
from .multibox_repulsion_loss import MultiBoxRepulsionLoss
__all__ = ['L2Norm', 'MultiBoxLoss', 'RepulsionLoss' ,'MultiBoxRepulsionLoss']
| [
"linchangwei@bupt.edu.cn"
] | linchangwei@bupt.edu.cn |
db0be62e06bba0b6794bf9910dc2bb019255914a | 697f9bbb47254853783c60de7ffc8d5fb411e73d | /evo_gym/wrappers/frame_stack.py | b69cf84097a81f73a03c884f8edce1441dfa4f3f | [
"MIT"
] | permissive | SamuelSchmidgall/EvolutionarySelfReplication | d27389191435ab679199fa06d59f15aef155cd8a | 1a6f8225378b59423a97b439b56710bbed2754e9 | refs/heads/main | 2023-07-30T12:34:27.720041 | 2021-09-29T18:49:16 | 2021-09-29T18:49:16 | 366,845,417 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | from collections import deque
import numpy as np
from evo_gym.spaces import Box
from evo_gym import ObservationWrapper
class LazyFrames(object):
r"""Ensures common frames are only stored once to optimize memory use.
To further reduce the memory use, it is optionally to turn on lz4 to
compress the obse... | [
"sschmidg@gmu.edu"
] | sschmidg@gmu.edu |
ddfc54a21be416b99146c962555566b36345dc00 | 98e2153999190fc9e391096dd45e0eeedf276ebd | /app/forms.py | 7df865abc6e3ee1e3b150141862875df0924d359 | [
"MIT"
] | permissive | Beaconsyh08/Real_Graph_Select | 41677d712d5cebe868c0e4fe8f840a66cb20243f | a164e76102ecd5aa78763050fd05029acb0b4993 | refs/heads/master | 2020-12-13T21:16:20.416279 | 2020-02-08T10:33:26 | 2020-02-08T10:33:26 | 234,531,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
passwo... | [
"songyuhao2008@gmail.com"
] | songyuhao2008@gmail.com |
0eedf3ac560ea9a0002f2b3093809ae30c42d489 | 9b42a0264cf4fbdc519c0bfc3106232973dc463f | /回滚/5/鼠标型打飞机.py | 434bc60553754c15e9fa45ddaed84b43623b9231 | [] | no_license | zero1300/plane_war | b8ed7ae8c25569f7b1fe6a062cb24672b9315849 | 0a228e45100d2950f96bdae9be4319508b6ad2ce | refs/heads/master | 2020-09-05T04:20:25.463127 | 2019-11-06T11:24:46 | 2019-11-06T11:24:46 | 219,979,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,381 | py | import pygame
import random
from Vec2d import Vec2d
import copy
# 导入素材文件
background = './bg.png'
my_plan_picture = './plane01.png'
enemy_picture = './enemy.png'
my_bullet_picture = './bullet.png'
enemy_bullet_picture = './emenybullet.png'
pygame.init()
FPS = 120
fc_lock = pygame.time.Clock()
class Plan(object):
d... | [
"2806374351z@gamil.com"
] | 2806374351z@gamil.com |
72f809f1c6cd5f222cfa9427d1f96645a6d49eb5 | 111255234e654bff3036ebd414bdef7533481595 | /main.py | 0bf59ec346d49df10d9f7d3646d074517a284ce7 | [] | no_license | wanghaisheng/YOLO-Streamlit | 2ab07c14a3da85f39d784c7d91025c6aa7fab260 | e8e51d538ac6bf91c4e7883599484db36be8d337 | refs/heads/main | 2023-08-18T19:03:13.986376 | 2021-10-10T11:45:38 | 2021-10-10T11:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | import streamlit as st
import cv2
import numpy as np
from PIL import Image
from Inference.inference import Inference_pipeline
from Inference.visualizer import Object_detection_visualizer
import tempfile
st.title("Object detection with YOLO")
config_path = r'C:\Users\Ankan\Desktop\Github\FastAPI-model-serving\Inference... | [
"36896102+Ankan1998@users.noreply.github.com"
] | 36896102+Ankan1998@users.noreply.github.com |
5c8b0670ed8a065abad7b185453a00fe4a99dd69 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/pal_visual_localization_msgs/lib/python2.7/dist-packages/pal_visual_localization_msgs/msg/_VisualLocAddPlaceActionGoal.py | d4a9ad6f98e70043363db2269d010129a2aee23c | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,152 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_visual_localization_msgs/VisualLocAddPlaceActionGoal.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import p... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
287a1ae52153cdb84929d5ffc2c542165a6f16d6 | 2e299b2a0998a1d955365555dc5f9cc410cd88c4 | /models/review.py | 00acafedbeb6374d5e8ce4518b0df9b0f9c22828 | [] | no_license | Zevrov/AirBnB_clone | 3bf6a8639fd78c69f5afe06a678eea946f68e238 | 2e8259860f4edae43cf8aa46b1fab71c76365901 | refs/heads/master | 2020-06-12T10:31:06.487687 | 2019-07-15T00:25:29 | 2019-07-15T00:25:29 | 194,271,944 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | #!/usr/bin/python3
"""class review"""
from models.base_model import BaseModel
class Review(BaseModel):
"""rep of review"""
place_id = ""
user_id = ""
text = ""
def __init__(self, *args, **kwargs):
"""init review"""
super().__init__(*args, **kwargs)
| [
"zevrov.719@gmail.com"
] | zevrov.719@gmail.com |
05214a7008a75ce3f48fe29ceafea70414175845 | a733f427ac80ba43a8dee8e33b8566bab42a9d92 | /core/db_access_control/ddl_utils/exist_condition_patcher.py | d971d2a64e1bb67c5327502e7b2ea5c65a164e39 | [] | no_license | xyder/IOStorM | c1a56e03f1f9b6915615c6208d9ed39e2bd1903f | 81dd79412dd68bdaa55c335084c1b18c08d84979 | refs/heads/develop | 2020-06-15T16:57:46.563849 | 2017-03-19T01:08:44 | 2017-03-19T01:08:44 | 75,277,738 | 1 | 1 | null | 2016-12-29T08:12:10 | 2016-12-01T09:41:59 | Python | UTF-8 | Python | false | false | 5,339 | py | """
Module that provides functions to patch the existing DDL Elements by adding conditions that
take into account the pre-existence of elements in the databased.
-- based on gist https://gist.github.com/eirnym/afe8afb772a79407300a
-- by Arseny Nasokin
"""
import re
from copy import copy
from enum import Enum
from sq... | [
"xydr2311@gmail.com"
] | xydr2311@gmail.com |
e816b4b7e5cb489a487558067c1cc730b4997e8d | 513942a6f7d3d30999a538d7d6fbb491d7a33adc | /code/solution55.py | b608555415dbb90c9a9dd4326516a92b5c8f0e82 | [] | no_license | nemosharma6/100daysofcode | b51ba0d012956d9028746aa583f79200beaf14bd | 92ac930d6dcd0f7e03cb6fe2c2395e471297cd3b | refs/heads/master | 2020-04-20T10:06:44.305172 | 2019-06-04T04:25:45 | 2019-06-04T04:25:45 | 168,781,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # https://leetcode.com/problems/remove-nth-node-from-end-of-list/
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
second_head = head
... | [
"sharmanemo1994@gmail.com"
] | sharmanemo1994@gmail.com |
85c1c05f414c65a634b7aa2e00e109053e5b8b0a | df720ce2a6bf1fb8d48d27c036d0dbae55fb5ddf | /examples/index.py | 317c7ce7a845760bd810fd9fc7177f465d4af887 | [] | no_license | DarwinInnovation/py-bulksms | aeafdbf80d266003764c56a405ffeb2b87c8fb78 | 007048d3d2afc2ce6431e8f2e53049618b475670 | refs/heads/master | 2021-01-22T04:02:15.768372 | 2017-09-08T13:07:23 | 2017-09-08T13:07:23 | 92,424,311 | 0 | 1 | null | 2017-05-25T16:47:24 | 2017-05-25T16:47:24 | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python2.3
'''
index.py: Example of using the callback interface.
'''
from BulkSMS import ReplyHandler
print "Content-type: text/plain"
f = open('/tmp/bulksms_reply_callback', 'w')
f.write(repr(ReplyHandler.fetch_reply()))
print 1
| [
"devnull@localhost"
] | devnull@localhost |
7c0d5fcd466223947a6cf50a2aa5f2c297c752d0 | df374b00e90702a2dcb40a0ac01cf23aae903392 | /download-google-news-model.py | 2f9b3e7ad78c3134a556b377bc5cf5588dd7fc8a | [
"MIT"
] | permissive | afcarl/MediaCloud-WordEmbeddingsServer | b392249a1d723d7da9c8c1b0f482bfc0b4a96e71 | 0b1dcc99229c3563343c04723a524be6d15a6e35 | refs/heads/master | 2020-09-03T03:28:14.717883 | 2019-01-07T16:56:12 | 2019-01-07T16:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import os
import requests
import shutil
MODEL_GOOGLE_NEWS_URL = "https://s3.amazonaws.com/mediacloud-nytlabels-data/predict-news-labels/GoogleNews-vectors-negative300.bin"
model_dir = "./models"
model_name = "GoogleNews-vectors-negative300.bin"
path_to_model_file = os.path.join(model_dir, model_name)
if not os.path... | [
"rahulbot@gmail.com"
] | rahulbot@gmail.com |
7af0311db516a4618388476fbfb5bb141c01a59d | 2612a21d776e08a16b6b1318dd60fc7851cd28de | /captainhook/checkers/yamllint_checker.py | 3a4e391cb7d5b4fedfd7521574b9ce7ae95cbae0 | [
"BSD-3-Clause"
] | permissive | haizaar/captainhook | 208122554ba19a2197cae859497093724e149ecd | 8062e7eea765f090baf1d892b9bec3ec2ac14913 | refs/heads/master | 2020-04-17T16:08:47.335570 | 2018-03-19T09:31:18 | 2018-03-19T09:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | # # # # # # # # # # # # # #
# CAPTAINHOOK IDENTIFIER #
# # # # # # # # # # # # # #
import os
from .utils import bash, get_config_file
DEFAULT = 'off'
CHECK_NAME = 'yamllint'
NO_YAMLLINT_MSG = ("yamllint is required for the yamllint plugin.\n"
"`pip install yamllint` or turn it off in your {}"
... | [
"ilya.levin@kaminario.com"
] | ilya.levin@kaminario.com |
60f2931e70a8cddda2db81dbc1c5757c90ecd578 | 961931333838aebe8bd17c30c19f3994e32d76ce | /src/leetcode/sql/175. Combine Two Tables.py | 084dafc14d15b7212cff6436f4fa0d901afb9738 | [] | no_license | MTGTsunami/LeetPython | 5161f9e31dc2ab1855123c2a3a151eb6f4d889bc | f7f3839f631f08a9e5bf8a02398b940f82e43e67 | refs/heads/master | 2023-04-17T16:59:45.621291 | 2021-04-26T07:24:50 | 2021-04-26T07:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """
Table: Person
+-------------+---------+
| Column Name | Type |
+-------------+---------+
| PersonId | int |
| FirstName | varchar |
| LastName | varchar |
+-------------+---------+
PersonId is the primary key column for this table.
Table: Address
+-------------+---------+
| Column Name | Type |
... | [
"mtgtsunami1219@gmail.com"
] | mtgtsunami1219@gmail.com |
a4a774637b9506a4fcd7d59ad3d3b00dbb6e00b4 | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet257.py | db7fa7529bc48303517ff4c1dd0938360c20b150 | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 1,877 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
# @param {TreeNode} root
# @return {string[]}
def __init__(self):
self.path_stack=[]
self.path_result=[]
def binaryTree... | [
"songziheng@xiaomi.com"
] | songziheng@xiaomi.com |
5483f0ba03c6be775bb4ee207361205bd339d979 | 83934c40b2bd835464732345fa516b2c657a6259 | /Pyrado/scripts/training/qcp-su_nes.py | d3b218d0f8e2488bf360010e8bb7ecc7b696ddf7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | 1abner1/SimuRLacra | e0427bf4f2459dcb992206d3b2f347beab68a5b4 | d7e9cd191ccb318d5f1e580babc2fc38b5b3675a | refs/heads/master | 2023-05-25T04:52:17.917649 | 2021-06-07T07:26:44 | 2021-06-07T07:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | # Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
77550b313431e86fc2369d28a83666e70250982a | 1d482878230a6c6cbef7680f3910561a4b35c35c | /element/scripts/migrations/0012_auto_20180214_2136.py | 37f92c55454d0f9a6a8c68d228d14f48ad51c87f | [] | no_license | karthikvasudevan92/elem | ac5355fe029251b7de76428a558049ab949689df | f5dad5cdfaba736843d29c781ec253d2cee51ccd | refs/heads/master | 2021-04-28T03:47:23.643252 | 2018-03-17T13:10:07 | 2018-03-17T13:10:07 | 122,144,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # Generated by Django 2.0.1 on 2018-02-14 21:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scripts', '0011_script_lines'),
]
operations = [
migrations.CreateModel(
name='Sentence',
fields=[
(... | [
"vasudevankarthik92@gmail.com"
] | vasudevankarthik92@gmail.com |
83fbed47c19f6eda9ab2452593ce6e746ec85cda | f20e965e19b749e84281cb35baea6787f815f777 | /Bender/Ex/BenderExample/python/BenderExample/AP.py | 604d72c693f17381de5711c4bf10df4e096af680 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,772 | py | #!/usr/bin/env python
# =============================================================================
# $Id$
# =============================================================================
## @file BenderExample/AP.py
#
# The simple Bender-based example: show " Lambda0 <-> K0S " reflection
#
# This file is a part of... | [
"ivan.belyaev@cern.ch"
] | ivan.belyaev@cern.ch |
92e144e2dd2749cf268097192cad47256509ff90 | 0ea5c7efb4d3aafce3826105011a6c61af7f2ede | /test/test_runner.py | ee852af5aa19948e01bf1ab92840f6d665225ecf | [] | no_license | benwaldner/pyCryptoTrader | 4877d2e5239a0e71140ecb5bf353d7b13d5ef741 | 73ffc2aa7084204675f0c5acc0e2270d4a407adc | refs/heads/master | 2023-03-18T20:35:36.971335 | 2019-02-11T22:22:11 | 2019-02-11T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from pprint import pprint
from subprocess import Popen, PIPE
import sys
import os
cmds = [
["python", "db_test.py"],
["python", "analysis/hist_data_test.py"],
["python", "analysis/backtest_trader_test.py"],
["python", "analysis/backtest_test.py"],
["python", "analysis/plot_test.py"],
["python"... | [
"joelin000@gmail.com"
] | joelin000@gmail.com |
42a61862caec64f7c5ce248a6463b544eccc4a27 | 2a39ad7d9340fc557bc56d3022374748cc888dc9 | /thor/utils/api.py | e7974fc19f3ee2885e597b1c8d51f75826088b18 | [] | no_license | tiechuiwangwang/thor | 5e5c99191e0e94c956b25aeee150e5532b65346a | 0adbaac9b67e0df79afea35909d44bf83d6476d2 | refs/heads/master | 2020-04-26T05:02:44.583318 | 2019-03-09T15:36:50 | 2019-03-09T15:36:50 | 173,321,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import json
from flask import Response
def json_response(data, http_status):
return Response(data, status=http_status, mimetype="application/json")
class BusinessResponse(object):
def __init__(self, http_code, code, error=None):
self.http_code = http_code
self.code = code
self.erro... | [
"shonenada@gmail.com"
] | shonenada@gmail.com |
cb8ad10707c3e94850cb0d509f41346b7c544bfa | 31c31345946b3526ffe3f1eafbc9dd7cdb48e03a | /URI Online Judge/Estruturas e Bibliotecas/2729 - Lista de Compras/2729.py | 94d7f79422f294e646b8e101383c24d51216da37 | [] | no_license | felipefoschiera/Competitive-Programming | 84967cb7c6b82df5990cccea5d5b6862b9e63f65 | fe664046d0161fd6a15d4b8d8f983e77c6dc3dcb | refs/heads/master | 2022-02-23T16:07:04.326089 | 2019-10-04T19:22:22 | 2019-10-04T19:22:22 | 198,893,046 | 0 | 0 | null | 2019-07-25T19:53:36 | 2019-07-25T19:53:36 | null | UTF-8 | Python | false | false | 227 | py | tests = int(input())
for _ in range(tests):
palavras = input().split()
unicas = []
for pal in palavras:
if pal not in unicas:
unicas.append(pal)
unicas.sort()
print(' '.join(unicas)) | [
"felipefoschiera@googlemail.com"
] | felipefoschiera@googlemail.com |
244ea6eaeefdcc69834400b3af182d0f8e12dd1e | 7ddd62a2281e70374b3ff7bf93b987696ce8f72e | /Static/Reduced/SAE-CAT.py | 710acad841a3b15cdf30cf32d5b416d160778f8f | [] | no_license | Almondo4/ML-IDS-Framework | c76c56679b029e45520fb6acbcb1e5e4d6c283ab | dcd8c42c6fdb8e26cded9d10b813e5bd7a5b1eb4 | refs/heads/master | 2023-02-17T00:46:34.536026 | 2021-01-15T22:12:16 | 2021-01-15T22:12:16 | 329,980,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | import os
root_logdir = os.path.join(os.curdir, "my_logs")
def get_run_logdir():
import time
run_id = time.strftime("run_%Y_%m_%d-%H_%M_%S")
return os.path.join(root_logdir, run_id)
run_logdir = get_run_logdir() # e.g., './my_logs/run_2019_06_07-15_15_22'
####################################################... | [
"batoucheali97@gmail.com"
] | batoucheali97@gmail.com |
971721283348a6ed96146c38df67305cce322f3f | 3d81f8b648f6bf227cd607eddfd7d14f67193d65 | /save_sequence.py | 556b6fcc5d2041c8990b70218c6f0fcd2696924d | [] | no_license | Marcin-Regulski/Sawyer4.0 | 3b3fc23fc544d51f0c8ad4305fe4198c8a83ca88 | bd5c34765b24345bb2037e08f64dbb7f7adfb44e | refs/heads/master | 2021-04-06T18:06:16.904568 | 2018-05-07T18:42:19 | 2018-05-07T18:42:19 | 125,240,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/env python
# Aim of this script is to detect current joint positions and x,y,z of
# gripper and save it in dictionary as set up locations for a robot for later use
import argparse
import struct
import sys
import copy
import rospy
import rospkg
import intera_interface
import imp
flask_server= imp.load_s... | [
"m.regulsky@gmail.com"
] | m.regulsky@gmail.com |
300055fffdd0f469d53b856b350e4172c0be70a0 | 9bd297ef9430dbc42a4a00655f787bc7453b5fd8 | /Final Project/page2.py | 05e62089e041cd7873cd84382aec2f94011e0216 | [] | no_license | neilhsu70/DataAnalytics-Final-Project | fb26b12aa408af3d67fa35716e5268757fd87896 | 7c0f56ca0941ced962c6b9b453c43ca2a1ff6a24 | refs/heads/master | 2022-11-17T06:25:20.896902 | 2020-07-21T23:02:53 | 2020-07-21T23:02:53 | 277,962,173 | 1 | 2 | null | 2020-07-21T21:19:03 | 2020-07-08T01:42:46 | Jupyter Notebook | UTF-8 | Python | false | false | 3,509 | py | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly
import pandas as pd
import numpy as np
from datetime import datetime
import plotly.graph_objects as go
import plotly.express as px
from datetime import datetime
#Data
US_country_d... | [
"noreply@github.com"
] | noreply@github.com |
34d30b873823b4abc98982c09013c47d8703f1e6 | b85c8edaf0d4edbc4ce820f19c9ecc7abcb2e3bc | /CSCI220/Week 09 - MAR12-16/tictactoeexample.py | 4c6d08e728d0beadd34962461f1c37393d59fddf | [
"Apache-2.0"
] | permissive | itsallvoodoo/csci-school | 3eba3390c595b281f3f94750b8b787ca3f8c9f29 | ecf0c737d31c077e54ddd24ddab50d73d8eb5b17 | refs/heads/master | 2020-05-24T15:37:46.999396 | 2014-03-24T16:19:17 | 2014-03-24T16:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,504 | py | from graphics import *
def create_board():
board = [['','',''],['','',''],['','','']]
wwin = GraphWin("Tic Tac Toe",300,300)
wwin.setCoords(30,30,0,0)
Line(Point(10,0),Point(10,30)).draw(wwin)
Line(Point(20,0),Point(20,30)).draw(wwin)
Line(Point(0,10),Point(30,10)).draw(wwin)
Line(... | [
"chaddhobbs@gmail.com"
] | chaddhobbs@gmail.com |
5234f46aeb64a207e5d0099f2b162292e8f5c6fb | 3026c00ff1f0b2cd700a992f84e9e36f85df6da9 | /Assignment 2/familiarization.py | 74045312f51547f616bbe7a428bb261bff8f0fd9 | [] | no_license | jwbambacht/cyber-data-analytics | 9e703e350ccdce18868c742c5dae35ae0f56424d | de511b24169fd176b22cf52af4c50f9453dd2a0b | refs/heads/master | 2022-11-29T10:14:06.507649 | 2020-08-17T10:28:24 | 2020-08-17T10:28:24 | 259,739,901 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import familiarization as fam
from statsmodels.tsa.ar_model import AutoReg
from sklearn.metrics import mean_squared_error
from math import sqrt
sns.set_style("darkgrid")
def load_data(file_name):
data = pd.read_csv(file_name... | [
"j.w.bambacht@student.tudelft.nl"
] | j.w.bambacht@student.tudelft.nl |
dc687ce6f7b886a107577fc6a8a2c650f47eb41a | 3e93dd2ee190bc7eb928f6b9eec34d4d9b23e09a | /quora_clone/questions/api/views.py | e5e01dcda32b0f0856b3b876ea9dd5cad0d092d7 | [] | no_license | jordanengstrom/quora_clone | 0cdaec0bd0ff50013ba04db502817bcb965c659d | c55e0008f842d7cc43e21708be0a9cb540120dc3 | refs/heads/main | 2023-02-13T16:38:31.934285 | 2021-01-11T01:22:11 | 2021-01-11T01:22:11 | 320,454,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | from rest_framework import generics, status, viewsets
from rest_framework.generics import get_object_or_404
from rest_framework.exceptions import ValidationError
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from .serializers... | [
"jordan.engstrom@gmail.com"
] | jordan.engstrom@gmail.com |
9e04a3a470b7c4827a6790f552542dc33b86ca25 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/decorators/__init__.py | f375fbf7167ba51bf4fa366449265f28793ea4e1 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 2,175 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
d123e74afa86ffc6e4f45ab02bf16a9737f44e58 | aa4aa51465d79e0447cbe22281f0402ca95bdaa2 | /matlab/acc90/train.py | a013d93c11352252919e764cbacc4e8aeb9f42c5 | [] | no_license | zuozuo12/usualProject | 2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7 | 335bcef5d76d6cf0c84dd3209176089b3b07fbba | refs/heads/master | 2020-11-27T17:02:33.252884 | 2019-10-22T06:46:32 | 2019-10-22T06:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,669 | py | # coding: utf-8
# import the necessary packages
from keras.models import Sequential
from keras.layers.convolutional import Conv2D
from keras.layers.convolutional import MaxPooling2D
from keras.layers.core import Activation
from keras.layers.core import Flatten
from keras.layers.core import Dense
from keras import back... | [
"llfwyyx@163.com"
] | llfwyyx@163.com |
9656a8cf0063f25f89370d2950a610595094a3b6 | 1f3cc953ed9d1a799e732a2c03774c5be1970188 | /resolution_1/resolution_1.py | 28e60b944b8030783d084d5a16da5a94c68c4ede | [] | no_license | Murray2015/thesis_python_code | 0483d9552d04bc63b59d0fe6403b89af1847f4a7 | 6745a6e7d06ccc9343f0e40cccf91752096fba24 | refs/heads/master | 2021-01-20T05:46:45.824680 | 2018-04-02T16:53:51 | 2018-04-02T16:53:51 | 101,470,416 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 3 12:36:54 2017
@author: mxh909
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
log_data = pd.read_csv("Wireline/resolution-1_final.las", delim_whitespace=True,
header=None, names=['DEPTH', 'BS', 'CALI', 'DTC', 'GR', ... | [
"murrayhoggett@gmail.com"
] | murrayhoggett@gmail.com |
591cd9a8ae0ca539e11b66a5bfc9a62cff31b1b8 | 5c285b9b907604ce6721d1d5f1311688e6b57940 | /ihome/ih/utils/captcha/captcha.py | 5564c4d520cd0188d8bedb4baedd4bfaf6f7bb5e | [] | no_license | luqingfei-it-python/flask-python | 9d6f3bfdb668d41805bcea8f7068794c47a43169 | 54a05821e933b56cb6e641d658288badf8ac5ba5 | refs/heads/master | 2020-06-21T23:32:48.754019 | 2019-07-18T12:01:27 | 2019-07-18T12:01:27 | 197,578,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# refer to `https://bitbucket.org/akorn/wheezy.captcha`
import random
import string
import os.path
from io import BytesIO
from PIL import Image
from PIL import ImageFilter
from PIL.ImageDraw import Draw
from PIL.ImageFont import truetype
class Bezier:
def __init__(... | [
"luqingfei_it@163.com"
] | luqingfei_it@163.com |
ce3b0296e817c31a877a46b8b8050cf3cb6b1aa7 | d37c7303895b378b603f8b1419f6aa9f89f38b2f | /Multiplacation.py | eb09bf818b43437e04ecd567c503282f72d14866 | [] | no_license | mdaiello/Year9Design-PythonMD | 7027e92c0bdf09b8c11719b513b8f253a9c4474b | 32621487fd4bce054c4c1825f74f247f9789b885 | refs/heads/master | 2021-08-24T16:20:58.737700 | 2018-12-13T15:37:06 | 2018-12-13T15:37:06 | 148,362,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #print("enter a number: ")
num = input("enter a number: ")
num2 = input("enter a number: ")
x = int(num)
y = int(num2)
print(x * y) | [
"michael.daiello@9771.local"
] | michael.daiello@9771.local |
4867c97d7f878f81f9b9bd52d676da267f010d5a | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-core/libffi-src/tests/run-tests.py | 56839645e43efe8b13876c8beb213c24f1e6d9b7 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | """
'test' action for setup.py
"""
import sys, os, string, glob
from os.path import basename, dirname, splitext, join, expanduser, walk
from fnmatch import fnmatch
import unittest
import dejagnu
deja_suite = dejagnu.testSuiteForDirectory("tests/testsuite/libffi.call")
suite = unittest.TestSuite((deja_suite,))
runner =... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
20f25bde0fda68fd993b8846c8f76daf3475d859 | f9c2687e02c538afd9e9a37f1f3f50578e6204d9 | /intake_cmip/database.py | a4d604a34f744203d0c1a8a71f8c1d24d869a7b7 | [
"Apache-2.0"
] | permissive | wydh/intake-cmip | 4ca2a9e8678fec8cb637aef8f6419875be6e4208 | f3f61e1504f2c8a7cf79d8a355894757e82be5e2 | refs/heads/master | 2021-01-01T07:53:07.922659 | 2019-03-02T04:55:53 | 2019-03-02T04:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | #!/usr/bin/env python
"""Contains functions to generate CMIP5 data sets database."""
import functools
import os
import re
import shutil
from pathlib import Path
import dask.dataframe as dd
import pandas as pd
from dask import delayed
HOME = os.environ["HOME"]
INTAKE_CMIP_DIR = f"{HOME}/.intake_cmip"
@functools.lru_... | [
"axbanihirwe@ualr.edu"
] | axbanihirwe@ualr.edu |
ee9d343201ef5dfbe34420fce69956f597eadadd | 0556754cd4765d05a1d831c48933c5f299bb095d | /Oct-27-2020/Exam.py | a421e7a4b0f0eb13465f746413cf40046b5aecc0 | [] | no_license | rohitbhatghare/python | 4fa5e5883743023ced841892a13a9798b7686f39 | 248d265e02ecbc1270a87081af26537eb401e535 | refs/heads/main | 2023-02-03T04:32:15.716805 | 2020-12-21T11:33:27 | 2020-12-21T11:33:27 | 302,831,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #Which of the following expression involves corcion when evaluated in python?
a=1.7%2
print(a)
#What is result of cmp (3,1)?
#a=cmp(3,1)
#print(a)
import sys
l1=tuple()
print(sys.getsizeof(l1),end="\n")
d1=[10,20,30,40,50]
d2=[1,2,3,4,5]
print(d1-d2)
| [
"noreply@github.com"
] | noreply@github.com |
00c549a45d06dafa57e35a4c376cb501be51497b | 7ae5c0b74940f322296fd2f4abac4eb3336a2943 | /fizzbuzz.py | f82102eb46663590743125c7238e783adfd934c0 | [] | no_license | LA638/FizzBuzz | 15bc81feabcf83e55efc7a5f06aded7538d208fc | e338e85b1ad5dfba1e136b47c9411d92c58fe1aa | refs/heads/main | 2023-07-04T04:53:46.690832 | 2021-08-10T19:13:12 | 2021-08-10T19:13:12 | 394,757,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | for i in range(1,100):
if (i % 3 == 0) and (i % 5 == 0): print('FizzBuzz')
elif i % 3 == 0: print('Buzz')
elif i % 5 == 0: print('Fizz')
else: print(i) | [
"4388060@gmail.com"
] | 4388060@gmail.com |
a5c41e9e0898096cddc7ed9a5e5614873d7b603b | b6374d1ee7120cd81698d8fb614a05e71f24933c | /Book/Greedy/백준/단어수학.py | afc54b4100059888d574a68805d4135a9fd01608 | [] | no_license | yongmon01/AlgorithmStudy | 92022442cba4e4144f98bf3852657c8c60758d0d | 7d42032065683e123477d19ee24754a9c3e26bc5 | refs/heads/master | 2023-04-12T00:25:50.342230 | 2021-05-12T15:35:42 | 2021-05-12T15:35:42 | 307,395,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # 1339번 gold4
n = int(input())
words = []
answer = 0
for i in range(n):
words.append(input())
# print(words)
chars = []
numbers = []
for word in words:
length = len(word) - 1
for char in word:
if char in chars:
index = chars.index(char)
numbers[index] += (10 ** length)
... | [
"60520539+yongmon01@users.noreply.github.com"
] | 60520539+yongmon01@users.noreply.github.com |
ea6272e3d7bfd94f32693cd53759237e03a97ce2 | a074a34afadbc420bdecb05669d0bd046eecf86d | /实例源代码/第04章/4.3PM2.5Warning.py | 0903478cee40a3c707850db243ea31b72700627a | [] | no_license | apollowesley/Python2019_XXMU | c9a825a63bfb9a0eb45366401cc9c3fe605a31e6 | c87bf9b4245d523e43c4452d45ee9efe3ceb0663 | refs/heads/master | 2022-03-25T13:46:53.668061 | 2019-12-26T09:14:24 | 2019-12-26T09:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # 4.3PM2.5Warning
PM = eval(input("请输入PM2.5数值:"))
if 0 <= PM < 35:
print("空气质量优,建议户外活动。")
elif 35 <= PM < 75:
print("空气质量良,适度户外活动。")
else:
print("空气污染,出门时请佩戴口罩。") | [
"noreply@github.com"
] | noreply@github.com |
5fa5f1f76da44ffbc4a0ec0b851589cd62db6950 | cbc2f8353eb81ef6f790ce9f28c3bcb2783f082e | /binary_search_tree/singly_linked_list.py | fd07ce6d6d8b3894ea45118d49f6a1659b6a2060 | [] | no_license | manzur1990/Data-Structures | f7420cca05eb3f21a6934c8f3dd3e87815fa9a48 | cb9b8815042d6199c0d45c157d7ce8c4abbcf7ab | refs/heads/master | 2022-12-13T10:06:35.377804 | 2020-09-11T00:12:58 | 2020-09-11T00:12:58 | 293,835,463 | 0 | 0 | null | 2020-09-11T00:13:00 | 2020-09-08T14:29:42 | Python | UTF-8 | Python | false | false | 2,095 | py | class Node:
def __init__(self, value=None, next=None):
self.value = value
self.next = next
def __repr__(self):
return self.value
def get_value(self):
return self.value
def get_next(self):
return self.next
def set_next(self, new_next):
self.next = n... | [
"manzur-1990@hotmail.com"
] | manzur-1990@hotmail.com |
0820be805b1c29f6515a2c2a84b794b3f54cfa54 | cd74ae9acd803153b2a12a5c204a5bf53970ee1a | /chroma_instance/source/mrcnn/coco.py | 1342b993ba1e2ea50e96b6706902b48bdf227e1e | [] | no_license | owen8877/chroma-instance | 71304f33a018b0b12663313d2455a692aab27adf | d0385163c6a7b563e7f1b816cbe13763ddad4819 | refs/heads/master | 2023-02-03T17:33:08.441092 | 2020-12-21T23:54:09 | 2020-12-21T23:55:42 | 315,153,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,554 | py | """
Mask R-CNN
Configurations and data loading code for MS COCO.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
------------------------------------------------------------
Usage: import the module (see Jupyter notebooks for examples), or run fr... | [
"owentoget@yeah.net"
] | owentoget@yeah.net |
3b41378302a107c20743347f7770a2781913138e | 2816e6e548ebe053a7cbf84d51f095a31faf4d1a | /apps/gallery/forms.py | c2a1d7ba8839ac8dd761e4fca3384469d4e4c7b4 | [
"MIT"
] | permissive | F483/bikesurf.org | 906b902d3f76a1a67fc8ad9c3b7852bf33f77bc6 | c85680f7443920a4dbf95e24f58e0a095c3da42f | refs/heads/master | 2020-05-22T07:02:29.699828 | 2017-12-06T14:41:37 | 2017-12-06T14:41:37 | 25,440,210 | 7 | 3 | MIT | 2017-12-06T14:41:38 | 2014-10-19T21:06:05 | HTML | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.utils.translation import ugettext as _
from django.forms import Form
from django.forms import ImageField
from django.forms import ModelChoiceField
class Create(... | [
"devnull@localhost"
] | devnull@localhost |
8464b0da53163520361858e1ce4ee1cf43b1ae29 | 1f1931b2d9d02b9b8dfa8b08883134f664e642fd | /celery_task.py | f86bc796de70367f2f206cebcdceea4a4c77eb59 | [] | no_license | saketkc/iitb-library-sms-interface | 5dd96efe0fd2adbe244226998f726ea604f3f9f9 | 90c99e785059d2101d1ea7f946653bf0852a5c4b | refs/heads/master | 2020-05-17T07:10:08.021416 | 2015-01-10T02:01:49 | 2015-01-10T02:01:49 | 2,713,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from celery import Celery
celery = Celery('celery_task', broker='amqp://guest@localhost//')
@celery.task
def add(x, y):
return x + y
| [
"saketkc@gmail.com"
] | saketkc@gmail.com |
ec62bf2f298a1cce55afc00cd8894a74153dace7 | 10ef21efddff149e061b179f7c4334da4053a560 | /16/b.py | 53934393c4f8e1b7c691d5f8102c71b74cb7f83f | [] | no_license | leninexe/aoc2020 | 0e6e95e65dbdf29d00375625d6d53002878113aa | 619ac47ae2a70a191d4dcec9dc817ad387ec7e9b | refs/heads/main | 2023-02-12T23:45:33.294200 | 2020-12-29T16:49:34 | 2020-12-29T16:49:34 | 317,458,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # Read Input
f = open("input.txt", "r")
RULES = 0
MYTICKET = 1
NEARBYTICKETS = 2
rules = {}
allRuleValues = []
myTicket = []
nearbyTickets = []
state = RULES
for line in f:
if line.strip() == "":
continue
if line.strip() == "your ticket:":
state = MYTICKET
continue
elif line.strip() == "nearby tickets:":
... | [
"mawiwo@a1.net"
] | mawiwo@a1.net |
fa0a2f641f100abcaa6f9f73ad39bdbf64aa0dcb | 741a89b9dc609e288042c74b482dc30d84e302d6 | /pynance/quandl_codes.py | 56308c87bd88bbf266df9587f968bb90abac6c4f | [
"MIT"
] | permissive | stena/pynance | 60efa66cfc5bfea01cfe2ab5d18af8a0f2205dc5 | a56bbb9e4c8bf2f1cb3948370c8faa4b0027b1c8 | refs/heads/master | 2021-01-18T05:36:33.907772 | 2014-03-21T22:57:19 | 2014-03-21T22:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py |
import pandas as pd
from . settings import CODE_DIR
class CodeDownloader(object):
'''
Downloads the Quandl codes for updating local copies.
params:
drop_inactive: False to keep inactive stocks, default True
update_all: True to automatically save all codes, default False
''... | [
"dedwards@rohan.sdsu.edu"
] | dedwards@rohan.sdsu.edu |
ec997f8e91dbe9a343222f2dd56270fefa1c7fe7 | f76644aaf809aed68005fb4982dc7f3c9a1c3245 | /src/synthcontrol/multisyntheticControl.py | 5d1c51ae8566e78a01f1d7743af0a06671b15dbd | [] | no_license | jehangiramjad/tslib | dfcce12fc07edcd0f81df891a0cefa0ba14bacfa | 3e50bc1fbe0178bf2c1b21b2ce9fd0f0ca2d5f76 | refs/heads/master | 2021-12-27T01:20:42.640103 | 2021-12-14T00:17:46 | 2021-12-14T00:17:46 | 125,408,481 | 43 | 29 | null | 2021-07-07T12:28:55 | 2018-03-15T18:14:20 | Python | UTF-8 | Python | false | false | 5,494 | py | ################################################################
#
# MultiDimensional Robust Synthetic Control (mRSC)
#
# Implementation based on:
# url forthcoming (Paper to appear in ACM Sigmetrics 2019)
# (http://dna-pubs.cs.columbia.edu/citation/paperfile/230/mRSC.pdf)
#
###########################################... | [
"jehangiramjad@gmail.com"
] | jehangiramjad@gmail.com |
6722a9b9453e1622abe8e3e1a020e4c2fc321f6c | 5534f801c20dc23dcf9bd533c6143865724ced98 | /myspider/myspider/spiders/cnblog.py | e34b8d5b1f5295fec4cb1d039494cf92a5593922 | [] | no_license | bopopescu/CnblogSpider | 0d55bfedf307dd8fdbc93bcfe2bda0acf26bb422 | c5b6ca3d44003df44a65dae3bd80a566ac322eda | refs/heads/master | 2022-11-19T17:55:03.569494 | 2019-11-29T09:05:00 | 2019-11-29T09:05:00 | 281,827,422 | 0 | 0 | null | 2020-07-23T02:11:42 | 2020-07-23T02:11:41 | null | UTF-8 | Python | false | false | 3,700 | py | # -*- coding: utf-8 -*-
from urllib import parse
import re
import json
from ..until import common
from ..items import CnBlogSpiderItem
from ..items import BlogItemLoad
import scrapy
from scrapy import Request
class CnblogSpider(scrapy.Spider):
name = 'cnblog'
allowed_domains = ['news.cnblogs.com']
start... | [
"120483548@qq.com"
] | 120483548@qq.com |
7c3ae826950b35181067f2b7290ddc9b2585c016 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03200/s585925926.py | c1062b8838cc3d962a99491bab1f1f068f90380d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import sys
import heapq
import math
import fractions
import bisect
import itertools
from collections import Counter
from collections import deque
from operator import itemgetter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))
s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d21cfa20224009963ac2e9606235c88c68bb82df | a3499ceb68a997e65fc72bac480435054b676d1c | /exercises/P-1.30.py | 33d3934ab5051e7044a0f039de4543936569878c | [] | no_license | fhqvst/practice-python | 8a74ecc469121fd6b7ffe4c774d3ef3e46a1a0b6 | ba9e40fdf5194313e2d5e52d42dfc17edfd94eb2 | refs/heads/master | 2021-03-30T16:51:11.179215 | 2019-02-12T16:42:45 | 2019-02-12T16:42:45 | 87,622,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def times_until_max_two(n):
if n <= 2:
raise ValueException()
times = 0
while n >= 2:
n = n / 2
times += 1
return times
assert times_until_max_two(4) == 2
assert times_until_max_two(5) == 2
assert times_until_max_two(17) == 4
| [
"filiphallqvist@gmail.com"
] | filiphallqvist@gmail.com |
171455922a6106760930cd7ff9cdb0462e58a76a | b6df1d42719a55c1d2158ca2d65f6deec6d463b3 | /changeservername.py | b8f0e492081d88e564276e9338cad2eb2d1b4d7b | [] | no_license | badmetacoder/trystack-api-examples-python | 7785a429bfe73009637c4f2c83ebef00c36ca85d | 261bf7fedc5ff26b8e2e9113f5bbdbc9778fc16c | refs/heads/master | 2021-01-20T01:37:50.354143 | 2012-03-19T23:46:53 | 2012-03-19T23:46:53 | 3,769,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | #!/usr/bin/python
import base64
import httplib
import json
import urllib
from urlparse import urlparse
##
## arguments
##
## make sure that url is set to the actual hostname/IP address,
## port number
url = "nova-api.trystack.org:5443"
## make sure that osuser is set to your actual username, "admin"
## works for t... | [
"jacek@artymiak.com"
] | jacek@artymiak.com |
50b037d5b78a8550e382a1c81995fbd90b6aa790 | 0e3516a8f2b2099c244058c98b3658a78e65f440 | /cart/cart.py | 7c008039ba3d1f8e4aa3e8c18d8a19f7ed1bfd21 | [] | no_license | hryhoryeu/BeautyShop3 | 01cedcf4bbf2b1e7658ca595ff0ee7652377856b | 34a9fd06f9d7269daad1dc1f0d7da7a94f38edea | refs/heads/master | 2023-08-23T11:00:55.706862 | 2021-10-20T14:34:05 | 2021-10-20T14:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | from decimal import Decimal
from django.conf import settings
from shop.models import Product
class Cart(object):
def __init__(self, request):
self.session = request.session
cart = self.session.get(settings.CART_SESSION_ID)
if not cart:
cart = self.session[settings.CART_SESSION_... | [
"egoragrig@icloud.com"
] | egoragrig@icloud.com |
8aaae136f8303ef17e647a1b01d30c5f3c33de70 | ddd1c991e50915bcb4395fdeb550ac64bce7ddb6 | /organisations/migrations/0001_initial.py | 99892b1f3a588401bb2165a29a98ec7da8d3c1e9 | [] | no_license | subhasish1/TrackDebtor | 9fdbf0fc42ed210d5ef3ef9a37b2463131ddcee5 | 15fb29df94daa5e47b91f407ee0ffed55bf28e0f | refs/heads/master | 2022-11-18T08:38:56.936893 | 2020-07-06T06:56:51 | 2020-07-06T06:56:51 | 277,460,343 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | # Generated by Django 2.1.5 on 2019-04-25 12:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Organisations',
fields=[
('id', models.Auto... | [
"subhasishlove1@gmail.com"
] | subhasishlove1@gmail.com |
1fc718965928f072879159faf870330a5c0a4927 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/egtps5s8sgwendpoint_7cca43311ebbad01182a1518ea4a2358.py | b1d3f55dea1112d69b49f02307234b3af142f287 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 72,885 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
ee8226563ded79d046d52aabbd165af80529bdd3 | e39f2e519cd1c90c4b75d837c082c04d841f793b | /jerry1.py | 0dbe0c1eb4d23411786fd01ba87854af9b63d3ee | [] | no_license | jerinraj04/python-1 | 6429ef4c29655e5b960450ab5a03a33f5d0b6e31 | 715d4f9ccb6ad76f4a6072596cb399c58486997a | refs/heads/master | 2020-03-29T11:46:28.080615 | 2018-09-22T13:04:03 | 2018-09-22T13:04:03 | 149,870,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | string=raw_input("Enter string:")
char=0
word=1
for i in string:
char=char+1
if(i==' '):
word=word+1
print("number of words in the string:")
print(word)
print("number of characters in the string:")
print(char)
| [
"noreply@github.com"
] | noreply@github.com |
dbd8f57f1245d93c00dbd707ae6208c7a8cf22a0 | 383c7be9f33fccc810e61a569cfbde528c231504 | /pygman/__init__.py | fa828be2abafb4c1a3fe69d29314c922932d2969 | [
"MIT"
] | permissive | pygman/pygman | b913863f12267f3791f892df58330e489ef3d9a7 | ea2048d32b81c061054f46e6074fe3acca0e6921 | refs/heads/master | 2021-01-01T18:35:43.370299 | 2017-07-26T07:23:52 | 2017-07-26T07:23:52 | 98,371,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | from pygman.pygman import *
print("pygman")
| [
"pygman@aliyun.com"
] | pygman@aliyun.com |
98bfad8407fb960dd57b859c14d8758161bfa5cb | 9bc49b84ab0aa5c150475f72c622d7878fcadc1a | /Week2_Exercise.py | bdf0eaee800a69198e12335a04ced1a3bdb15c89 | [
"Apache-2.0"
] | permissive | eamonnofarrell/Python_exercises | 95cf962e555974d4664b2efaede88e18ade5dd1f | 0e37cb794b67c0b3142c19701fcc22c2a379b876 | refs/heads/master | 2021-05-03T04:39:51.183120 | 2018-04-04T15:32:42 | 2018-04-04T15:32:42 | 120,620,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #Eamonn O'Farell
# Week2 Fibonacci excercise
#define function fib which returns the nth Fibonacci number
def fib(n):
#initialise i and j to 0 value
i = 0
j = 1
n = n - 1
while n >= 0:
i, j = j, i + j
n = n - 1
return i
name = "OFarrell"
first = name[0]
last = name[-1]
fi... | [
"noreply@github.com"
] | noreply@github.com |
fea4e556a5158fd5e70824c08cf412332c23c555 | 363f22d5d9437dc2114429a43c96ae321433e527 | /python/web_dev/udemy/python_and_django/practice/section_23_first_clone_project/mysite/blog/migrations/0002_auto_20200527_2147.py | f3779dff83ffe1564f37201b87bf3380a8e68368 | [] | no_license | bennergarrett/learning_resources | 763f6c808488541eb7a67551df7fa144d9bb97fe | 09232361b3e8286188c0bc91fd7a8a77dbfaaa04 | refs/heads/master | 2022-12-28T10:10:56.642848 | 2020-09-02T16:56:03 | 2020-09-02T16:56:03 | 259,700,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 3.0.3 on 2020-05-27 21:47
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name... | [
"bennergarrett@gmail.com"
] | bennergarrett@gmail.com |
4b6d92200a691c871f465f85d680742b1a8d5b6c | 2ed0ab730b62665b3a36841ab006eea961116f87 | /Graph/Dijkstra/ShortestPathToGetAllKeys.py | 6981d8c9e48e408da298a2d155b43757028e1190 | [] | no_license | scarlettlite/hackathon | 0f0a345d867b9e52823f10fe67c6ec210a40945f | 179ba9038bbed4d48cb2f044fd8430cf2be2bab3 | refs/heads/master | 2021-07-04T00:55:17.665292 | 2019-03-04T09:10:59 | 2019-03-04T09:10:59 | 141,269,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | """https://leetcode.com/problems/shortest-path-to-get-all-keys/"""
from collections import deque
import heapq
class Solution:
def getstartingpoint(self, grid):
sc, sr = -1,-1
ck = 0
for i in range(len(grid)):
for j in range(len(grid[i])):
x = grid[i][j]
... | [
"shivanirathore496@gmail.com"
] | shivanirathore496@gmail.com |
80aacac32448d446c63021de1e47d6798d1414e1 | a9f4434d3b410886ffc10aa5aede3634692152b6 | /0218/ex2-3 copy.py | dbc837d5c71d31b90f8ecfffbca531181a8e84ae | [] | no_license | parka01/python_ex | d3690dcd8753864c335bf7782553719a072bd01d | a5811487516eb9ef86d5ae93e9060cac267b87ce | refs/heads/main | 2023-03-13T08:35:03.837790 | 2021-02-26T03:40:41 | 2021-02-26T03:40:41 | 339,892,972 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | num='1234'
num2=int(num)
i1=num2//1000
num3=num2%1000
i2=num3//100
num4=num3%100
i3=num4//10
i4=num4%10
sum=i1+i2+i3+i4
print(sum)
| [
"68191916+parka01@users.noreply.github.com"
] | 68191916+parka01@users.noreply.github.com |
a2b33f7d08037a1065cdb10f64850c8a9d0eea23 | a37505371408e327fd3b0f9ffccc9f39d913788f | /recursion/factorial.py | 3d2d0ac3b3815ebf9ee40fc86b8efefbec7835b2 | [] | no_license | jcohen66/python-sorting | ccbe54e8913a85a4f2c6edc04f1e19ca3c439cf0 | d5ef4572e8f94edc6e4d871702605a9e1b7ae61d | refs/heads/master | 2023-03-17T08:33:23.982201 | 2021-03-11T22:06:32 | 2021-03-11T22:06:32 | 332,294,311 | 0 | 0 | null | 2021-02-16T23:19:09 | 2021-01-23T19:45:05 | Python | UTF-8 | Python | false | false | 123 | py | '''
>>> fact(5)
120
'''
def fact(n):
# base case
if n <= 1:
return 1
else:
return n * fact(n-1) | [
"jcohen66@optonline.net"
] | jcohen66@optonline.net |
7278ad1c0c712bdec3506217781e18d26dce8907 | 21eac518308dd2f2865db1fa5fd685260ea7b792 | /src/metapack/constants.py | 83ec54d23b65a8ef6bff4c8f43c8ba1b77bfa327 | [
"MIT"
] | permissive | Metatab/metapack | 22d3dabd1520d48bf4e032502580f611cd7c7c1a | f3d5d8402bd506f1018d17e690f3104835c924d4 | refs/heads/master | 2023-04-06T10:12:26.323488 | 2023-03-24T21:07:50 | 2023-03-24T21:07:50 | 78,872,898 | 6 | 1 | BSD-3-Clause | 2019-05-12T16:47:47 | 2017-01-13T17:59:08 | Python | UTF-8 | Python | false | false | 223 | py | # Copyright (c) 2017 Civic Knowledge. This file is licensed under the terms of the
# Revised BSD License, included in this distribution as LICENSE
PACKAGE_PREFIX = '_packages'
MATERIALIZED_DATA_PREFIX='_materialized_data'
| [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
c80e7ad091fb326eecafb01fa88b3103b3bb9e2b | fa52ee094776f69f0214ffbe24281a9736eaaa40 | /solutions/129_Sum_Root_to_Leaf_Numbers_4.py | f9caec53630913df1e0dcc822819af46a3f47902 | [] | no_license | hank08tw/CodeFromLeetcode | 57898916c2b903b1ecbc3d0ed063b36531d74e93 | 41b2936600dd392627a4f6e146559739bb88da45 | refs/heads/master | 2021-05-03T04:26:28.239904 | 2015-06-07T17:31:06 | 2015-06-07T17:31:06 | 120,615,373 | 1 | 0 | null | 2018-02-07T12:58:40 | 2018-02-07T12:58:39 | null | UTF-8 | Python | false | false | 681 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @return {integer}
def sumNumbers(self, root):
queue = [root]
total = 0
while q... | [
"yao.zhao9101@gmail.com"
] | yao.zhao9101@gmail.com |
3f5a8e94679d23696673ba1c45fe49c2c256b76b | 25682654993a0e94c31c4d8367f7ba919696341d | /althy/settings.py | 4b2ef057f9cdc0521a582e03bc0411c777d1f445 | [] | no_license | cjcls-isctept/Althy | 8b73de2b03ef050b5d8aa21538ae9d477c9dcb7c | f39ceb1a910fc222cbd7e36b9e6f276b270a88fd | refs/heads/master | 2021-06-05T18:28:30.075900 | 2016-10-24T13:42:06 | 2016-10-24T13:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
Django settings for althy project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# B... | [
"cjcls@iscte.pt"
] | cjcls@iscte.pt |
1a5cdbcbfa4f1a4eb4512056da10c12cdb4f6fa6 | fc13a625638bd671c9384f6abd4b67190a766dc9 | /python/controlled-cart-pendulum.py | 5deea05d85069083c47b54ea9bb4eed767a8634a | [] | no_license | Martinsoyyo/inverted-pendulum | 04ed6c271d2b376c44d74e4d9f53a99b2d32f17b | 114e5881d5d42f897228091013fced8d26882c59 | refs/heads/master | 2023-08-21T16:32:50.692889 | 2021-09-23T15:39:58 | 2021-09-23T15:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | """
Simulation of controlling the inverted pendulum on a cart with state controller.
Equations:
th'' = (g * sin(th) - u * cos(th)) / L,
u = Kp_th * th + Kd_th * th' + Kp_x * (x - x0) + Kd_x * x'
System:
th' = Y,
Y' = (g * sin(th) - u * cos(th)) / L,
x' = Z,
Z' = u = Kp_th * th + Kd_th * Y + Kp_x * (x - x0) + Kd... | [
"zjor.se@gmail.com"
] | zjor.se@gmail.com |
18dce05a5bae85d8fef9e6175d630565c34fe43c | 84cdfb70998f3aed9061319f40bb36c0fc1b05a4 | /Project3/p3.py | f4572edb6d0f5be4acdba18f235a3c7534d07e40 | [] | no_license | mattsneaks/Computationally-Modelling-Resoning | 203ea7ebe10bf47cf050a9669d20f96773f0363a | 2312f6b9793774699922d809e809202ab7ace0ab | refs/heads/master | 2020-06-17T08:57:31.754250 | 2019-07-08T19:08:33 | 2019-07-08T19:08:33 | 195,870,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,615 | py | """Program by Blanette Baltimore, Matthew Kramer, Matthew Luker, Daniel Rocchi """
import random
import re
import itertools
import string
import time
from itertools import chain
import collections
class node:
def __init__(self):
self.function = str
self.inside = list
self.negated = False
self.roster = str
... | [
"noreply@github.com"
] | noreply@github.com |
9004146680ed2a457234a58e5caeda6a640d5fc6 | 9106aa2648b8afe571a5d3bba2c24c055ab31002 | /{{ cookiecutter.project_slug }}/api/{{ cookiecutter.project_slug }}/apps/accounts/api/v1/views/password.py | 2c32d968d87463d10aa2d12902b4b9d7b412b4b9 | [] | no_license | ArgDevs/backend-skeleton | 3dd318fb14b261514b83203eefa01ec5a95c2c0e | ebaac3e4be3b7c38131e4967c462ef2f84940a4d | refs/heads/master | 2022-11-13T12:16:30.743888 | 2020-05-20T22:00:10 | 2020-05-20T22:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | from rest_framework import status
from rest_framework.generics import CreateAPIView
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from {{ cookiecutter.project_slug }}.apps.accounts.api.v1.... | [
"alexander.ryabtsev@djangostars.com"
] | alexander.ryabtsev@djangostars.com |
5478f50a6646c2401c5d1ef56f1c287c28ffdbe1 | 7513e1b2a15fc43df03ac67c117b77b8ff5c982a | /customers_segmentation.py | c2dcf120ad7b898a39726cf40b14dbd32fdab266 | [] | no_license | kevin880987/DSAI-HW4-2021 | dd0f936cb53c7fc61c67baf8cf28be153b1b7b9b | ae4343d828eb6320d34750bf5dabd5292fa6e448 | refs/heads/main | 2023-05-30T17:20:52.546053 | 2021-06-14T17:12:39 | 2021-06-14T17:12:39 | 368,394,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | #!/usr/bin/env python
# coding: utf-8
import numpy as np
import pandas as pd
pd.set_option('max_columns', 150)
import gc
import os
# matplotlib and seaborn for plotting
import matplotlib
matplotlib.rcParams['figure.dpi'] = 144 #resolution
matplotlib.rcParams['figure.figsize'] = (8,6) #figure size
import matplotlib.... | [
"50478424+kevin880987@users.noreply.github.com"
] | 50478424+kevin880987@users.noreply.github.com |
5d20c2948fd8fe1976ae14a3119aac206b4aba7c | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/bgp/neighbors/neighbor/logging_options/state/__init__.py | 4d4cdf7200e60a249374f5fbc86441e2a186c980 | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,694 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
1aa3650b2c0f19b8d9061846b1cf347e70c14894 | aad06300a291f5dce352ed898b8b48cb59ad8f4c | /datalogger/migrations/0003_auto_20210513_0927.py | 51029f88f3ecfdf9928adbfb230526f9ec2f1adf | [] | no_license | heisenbug101/electric-vehicle-telematics | 75887985c05297575bd1135a164aa075e34ac28d | 774af2de62a6b91d2d71cc61534de9103989eaf5 | refs/heads/master | 2023-06-03T18:48:00.096434 | 2021-06-14T02:55:17 | 2021-06-14T02:55:17 | 374,525,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Generated by Django 3.2.2 on 2021-05-13 09:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datalogger', '0002_auto_20210513_0747'),
]
operations = [
migrations.RemoveField(
model_name='vehicle',
name='vehicl... | [
"shishirjha@Shishirs-MacBook-Pro.local"
] | shishirjha@Shishirs-MacBook-Pro.local |
25ba0d36b3a14e41714c4a4330878b4251bff0f1 | 338f35a5b1e556cba067bc6ffa3778332267fcdd | /niji/api.py | 8f6c02a3f9b5597ec74178e58d8d2e5748bd9df5 | [
"LicenseRef-scancode-sata"
] | permissive | fdl66/OnlineJudge | 50f3273b9d967ca870175a2edf9cb99cedaba6e4 | 4f0ae896694c93788bbb42eddb509fd6fc7aa41a | refs/heads/master | 2020-12-30T13:46:11.188596 | 2017-12-12T10:25:09 | 2017-12-12T10:25:09 | 91,249,578 | 0 | 1 | null | 2017-05-14T14:39:26 | 2017-05-14T14:39:26 | null | UTF-8 | Python | false | false | 888 | py | from rest_framework import viewsets
from rest_framework.authentication import SessionAuthentication
from niji.models import Topic, Post, Node
from niji.serializers import TopicSerializer, PostSerializer#, NodeSerializer
class SessionAuthenticationExemptCSRF(SessionAuthentication):
def enforce_csrf(self, request)... | [
"fan0816fan@163.com"
] | fan0816fan@163.com |
8556ef3d90daf3f78f63913c7c669ab2f0e1dd88 | d91a0186cec0452a8eb54fd6fabe0ef9e75cd738 | /chapter_9/exercise_9.5.py | ed039bea3104f20878cadf9031c3f0f3f438f6d4 | [] | no_license | MaximZolotukhin/erik_metiz | 31a6f5146b8bb58b8f04a6b9635b36a67830e52a | 8afde60aa2bddd6858a5f7a7189169a82bde4322 | refs/heads/main | 2023-05-03T07:39:06.731413 | 2021-05-30T19:04:31 | 2021-05-30T19:04:31 | 361,544,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | """
9.5. Попытки входа:
добавьте атрибут login_attempts в класс User из упражнения 9.3 (с. 175).
Напишите метод increment_login_attempts(), увеличивающий значение login_attempts на 1.
Напишите другой метод с именем reset_login_attempts(), обнуляющий значение login_attempts.
Создайте экземпляр класса User и вызовите in... | [
"ScorpionEvil777@gmail.com"
] | ScorpionEvil777@gmail.com |
1f1bf8e01776f82022bd765f27498da2461587be | c2a3e985a78638a5a5cee4ba3b52c6a502d54c04 | /venv/bin/easy_install | 61a523ec50414e61e24b884922bb763f7c716cda | [] | no_license | agrimreaper49/TempConverter | 3dafca3826bfa19701ac2ba65a51dab9aba72be0 | 8b2959ce7ed62d8d9e85935d6e7088abc1449d57 | refs/heads/master | 2022-06-28T01:23:15.722239 | 2020-05-12T18:48:51 | 2020-05-12T18:48:51 | 263,421,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/Users/asharma/PycharmProjects/GUIFramework/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"76flyershd@gmail.com"
] | 76flyershd@gmail.com | |
a3cb4aa4a28f93cc844bd34674b023c572fa4653 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/configs/psanet/psanet_r101-d8_769x769_40k_cityscapes.py | bca631b125b687496c35ebd72ed8bbdd7a83d112 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 835 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
407ed935b7befe3e67c9b9ebc91f5d9d3a254c28 | fa07d3cd4ca0614b995f2a0ce95f6134989cdc25 | /33-moduller-02-os.py | cacb6c0b8edb810202a5dd1ac60c47064150e332 | [] | no_license | incememed0/python-notes | 5728380acab37108f4874beb54dcb9a6ccf9679e | 61c558792b2ca03179fe5520b076089bda675f8e | refs/heads/master | 2023-04-19T11:11:14.806268 | 2021-05-13T09:09:39 | 2021-05-13T09:09:39 | 316,295,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # author: Ercan Atar
# linkedin.com/in/ercanatar/
################################################
| [
"mek.muh.ercan@protonmail.com"
] | mek.muh.ercan@protonmail.com |
efde190bbeeec0f9893074e1d14d220175a000d9 | b6e6d32e4e054cf37a33bf8f2f9ad07263c3091f | /__main__.py | 1c8ad9e8e7f4045286f43343eee012d9871513c6 | [] | no_license | nyufac/dg | e9d3b90efdc26c4ad55e3350246fa5ff453cc461 | 3ea804e712c71eafc061f4fa3c7eca634b1d76bb | refs/heads/master | 2016-09-06T01:43:48.252201 | 2013-02-20T19:19:30 | 2013-02-20T19:19:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from .run import __main__
| [
"pyos100500@gmail.com"
] | pyos100500@gmail.com |
10c5eebe730943de327aa580f93157ac88c2d4b5 | 405fd21063cb46a7a2385a1b98bcccda0bebf575 | /stock_exchange_django/urls.py | 4be0d8562d44bde693f1f9f8c31f51fa236dc860 | [] | no_license | marco-calderon/stock_exchange_django | 6563ff76de38bc3613614909efb95c544c0e797f | 0e6d5e27ca0f263dcf378d5b30f45b6142354138 | refs/heads/master | 2023-08-18T03:23:54.563810 | 2021-09-10T18:58:55 | 2021-09-10T18:58:55 | 383,635,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | """stock_exchange_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"mcalderon.code@gmail.com"
] | mcalderon.code@gmail.com |
87a6000c573a2876ad76c03c1303e2e9e818ca62 | 98fcafc464ea64d2a4a32d8f1b3bfc4cf693feda | /scripts/1_script_basic.py | a075506348c1114e97b3d3f35aba913f23f41104 | [] | no_license | mirabdulHaseeb/ETHPool | ce8ed692582ffbe3076d0079ee077fdc7552061a | 6d59c96c31c1e351df4cc7cc4306ec01fda16454 | refs/heads/master | 2023-07-09T01:53:59.959101 | 2021-08-18T18:27:51 | 2021-08-18T18:27:51 | 397,698,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from brownie import accounts, MockERC20, ETHPoolFarm, ETHPoolToken
def main():
owner, alice, bob = accounts[:3]
mock_dai = MockERC20.deploy("MockDai", "mDAI", {'from': owner})
mock_dai.mint(owner, 25000, {'from': owner})
mock_dai.mint(alice, 25000, {'from': owner})
mock_dai.mint(bob, 25000, {'fro... | [
"abdulhaseeb732@gmail.com"
] | abdulhaseeb732@gmail.com |
add404cf837b77ea0909afc878c43ad55290eb6f | fb7bea3118d0cf50c280b6123c94747d48af977d | /montecarlo.py | b0a4801afafd01b25506a02611171321bb7905fa | [] | no_license | revifikry/Montecarlo | fa0dcf7effbcdc61ed6d442bc3d68e8a83cb350f | 067f74943fe53cf42db9ba6408b79783b1562f59 | refs/heads/main | 2023-03-12T23:50:31.765845 | 2021-03-08T15:15:44 | 2021-03-08T15:15:44 | 345,697,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | print("Nama : Revi Mochamad F")
print("NRP : 152017071")
print("Montecarlo")
import pandas as pd
import numpy as np
import random
data = np.array([[0, 20], [1, 40], [2, 20], [3, 10], [4, 10]])
pd.DataFrame(data, columns=["Minggu Ke", "Frekuensi"])
mingguke = data[:0]
frekuensi = data[:,1]
sigma_f = 0
for i in range(... | [
"revifickry@gmail.com"
] | revifickry@gmail.com |
d2dc6f2998a9798b03fba27d48cf8c18db844614 | 8494b750aa0754d4b2ca7033bcab47164c9eee4a | /backend/src/web/home.py | deb17513508467e3a979bd4500c53e01e8a6f645 | [
"MIT"
] | permissive | almeida-marcusaf/cursos-apppy | 2654ef8410abd3d73ea690d9b190102186e13556 | 97349bc56409ef25b902d3c0b6a61615c627a7ba | refs/heads/master | 2016-09-06T10:19:18.130220 | 2014-05-29T10:49:35 | 2014-05-29T10:49:35 | 19,961,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from web import my_form
from zen import router
def index(_write_tmpl):
url = router.to_path(my_form)
_write_tmpl('templates/home.html', {'form_url': url})
| [
"almeida.marcusaf@gmail.com"
] | almeida.marcusaf@gmail.com |
68748669b0946e5f4ed423f386e9de6f4c044a00 | 578027a231114d47269fe161e190816bb3198698 | /blog/models.py | 2c7fec426e8d4fb746551672df6a14a41ed00e10 | [] | no_license | jakebasel/blog | 67228e4df3d4c07ca8c52a8205d5bdb45905045b | e8f2ae5186b0b8ca4781b2895330838a35572a04 | refs/heads/main | 2023-07-13T08:39:30.285046 | 2021-08-22T16:58:06 | 2021-08-22T16:58:06 | 397,456,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | 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(self):
... | [
"jake@Jakes-MacBook-Air.local"
] | jake@Jakes-MacBook-Air.local |
a9243f5627e3e0a79fd6b593da8034ea26322a13 | dd27d8c13db12b01866c69bfe47654a4f678dd6d | /mysite/annotatorapp/migrations/0007_exsentences.py | 549bef576e73adf7d79c8936cec91610d29b608a | [
"MIT"
] | permissive | hareeshbabu82ns/smart-sanskrit-annotator | a8dfad175ce87f5ea4b919925e12352039e5cb0d | 763e1dd067107334761ba66796a559c18c2a2807 | refs/heads/master | 2022-09-14T15:27:58.030332 | 2020-06-03T13:05:51 | 2020-06-03T13:05:51 | 269,089,257 | 0 | 0 | MIT | 2020-06-03T13:00:35 | 2020-06-03T13:00:34 | null | UTF-8 | Python | false | false | 682 | py | # Generated by Django 2.0.4 on 2018-06-26 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('annotatorapp', '0006_merge_20180613_1419'),
]
operations = [
migrations.CreateModel(
name='Exsentences',
fields=[
... | [
"dilpreetchawla382@gmail.com"
] | dilpreetchawla382@gmail.com |
4d8ce538c74fee1c0cb6caba23a5e814dd6861cf | f911eb72744e2f8c0c874e0047a3f2c7cb4dee07 | /inventory/settings.py | fd5c9cad5ff9fea5367b61d7174f57a53d8f712f | [] | no_license | Silencesoulz/kevinwebsite | 33281c236899088f4f98d176c6d410d55d9459a1 | 1089a90c815ff0e4cb814c3678a19726680378e0 | refs/heads/master | 2023-01-18T16:33:29.680563 | 2020-11-22T09:40:22 | 2020-11-22T09:40:22 | 301,690,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | """
Django settings for inventory project.
Generated by 'django-admin startproject' using Django 2.2.16.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"keviniiz2543@gmail.com"
] | keviniiz2543@gmail.com |
7e34988b3dd951dc468f8a74b8da463df74f8725 | 5916383e8d3df886edd20ac00ce9706a78078f56 | /飞机大战/v03/sky.py | b7a8df9d36b5868edb42c30dc3fe89c36224a6d1 | [] | no_license | sczhan/wode | 556154e8ccaa9192ea257bc88df3c5e4b268f88e | af4c721d0cedfdd2fe01dd681539724d1d64c378 | refs/heads/master | 2021-07-06T22:26:34.465708 | 2020-09-04T18:56:38 | 2020-09-04T18:56:38 | 181,295,279 | 1 | 0 | null | 2019-09-09T16:30:00 | 2019-04-14T10:53:57 | Python | UTF-8 | Python | false | false | 972 | py |
import tkinter
import actor
import config
class Sky(actor.Actor):
"""
移动的天空背景
"""
def __init__(self, root, canvas, position, x, y, tags):
super().__init__(root, canvas, position, x, y, tags, config.image_sky_width,
config.image_sky_height, False)
# ... | [
"5481493@qq.com"
] | 5481493@qq.com |
cda5f7df5163c1e7b44142a7bb892f48b7e56af3 | 6712c5257a28bbe518f314119e5f5cf4b7d5e08c | /main.py | ad8f495e1900d531f6ada50ec1e1e45979ddbf20 | [] | no_license | evgeneh/pinger_back_py | d9f197fc42b7f81f6c4834bc2d31cf321e0349ed | 0545fdc34f6e3b2a4d4bc20ba4b088562056c06e | refs/heads/master | 2021-06-10T20:18:37.803731 | 2020-04-10T12:57:28 | 2020-04-10T12:57:28 | 254,348,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py |
from app import app
import view
from scheduling import th
th.start()
if __name__ == '__main__':
app.run() | [
"boss@debian.debian.com"
] | boss@debian.debian.com |
bd7e618babf29b88e5d5b427fc7f98bd92ecbfb6 | da7fc0abbb151cc5610294a00d339874ab4bdbc1 | /lecture_3_Processes_Fork_IO_Files/source_codes/signal_handler.py | 7bb12a4ac536467e257dfad88db575808bbf781a | [] | no_license | kenanniyazov/OS-class-materials | 163df135a2244df3ae8b17100a147335a5eb7ddc | 920e074abfa15864eaceed728adb0bcdc4048e09 | refs/heads/master | 2021-01-11T00:21:43.174718 | 2016-10-07T08:34:45 | 2016-10-07T08:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #! /usr/bin/python
import signal
import sys
import time
def signal_handler(signal, frame):
print "Hello Class!"
print 'You pressed CTRL+C!'
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
print 'It is CTRL+C handler code, press CTRL+C'
while True:
time.sleep(1)
| [
"rzayev.sehriyar@gmail.com"
] | rzayev.sehriyar@gmail.com |
b6ae5c6ac133bc2310314c915e3de4f1fd90f8bc | 876d44ca9d5a5f5c260f0759de5d548b1363437b | /turismo/settings.py | 1612fc97cac7d3b408499e2bd6628e8f66a8260c | [] | no_license | darwin-vladimir/turismo_tanicuchi | a59b0e00a5380a6bd6ee64930b4f5a9486b2fd46 | 52bd62f7dda38a2e165aafa3a33ea95156b7125b | refs/heads/master | 2023-02-06T17:59:39.929749 | 2020-12-30T22:10:06 | 2020-12-30T22:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURITY WARNING: keep the ... | [
"bryan-recors@hotmail.com"
] | bryan-recors@hotmail.com |
7bdacdd2f6cd8fcbcd2b34591d045990f32ac4f0 | 4c2c1775b6b319ae07155f46e70a6726ab0980c2 | /algo/algo_code/personal/cvr_space/shitu_generate_exp/script/stat_app_state.py | 5d2a4f71bf26c5d8ac64d8969140db1c5e8da278 | [] | no_license | kiminh/util | 8e4b204849a57941120e37c9330772f03c8892d0 | 763a71031d9c0ef207b87dc03ebc55208a2dd5ad | refs/heads/master | 2022-06-09T06:09:13.221754 | 2020-04-27T04:23:00 | 2020-04-27T04:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | import json
import sys
stat_dict = {}
for raw in sys.stdin:
line_json = json.loads(raw.strip("\n\r "))
promoted_app = line_json['promoted_app']
time_ = int(line_json['time'])
click = line_json['click']
trans = line_json['trans']
if promoted_app not in stat_dict:
stat_dict[promoted_app]... | [
"ling@lingdeMacBook-Air.local"
] | ling@lingdeMacBook-Air.local |
c6a2ae11e018c4fe3fc46b440948729170288cef | b660b61f2d82a221360a79e2dcbafdf151496cd1 | /store_data_in_database.py | a23ad43213efcbc27e5f61dd99b2a34ee7415bb5 | [] | no_license | aldotoci/automated_data_extracter | d74a28eda0d59208a1c016c32b09b559669e4aa1 | dcd2068ae010069ccd23d6b3344e5e4fbfec82ce | refs/heads/master | 2023-09-05T23:42:24.090834 | 2021-11-18T10:07:43 | 2021-11-18T10:07:43 | 429,380,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient
import threading
class store_info_in_database:
def get_info_per_anime(self, title, number_of_episodes, link):
anime_data = []
anime_list_link = 'https://gogoanime.ai/category/' + link
#Getting the anime_list pag... | [
"tocialdo@gmail.com"
] | tocialdo@gmail.com |
95a32b2a5bbfae0660d048c78d8d01b7feb5c48e | 591a05e50f2515f6bd4605de6ed9ed7d3936ad9d | /welib/BEM/examples/Example_BEM_1.py | ce403a98f34cecf7b29e89966a23ad351491e42a | [
"MIT"
] | permissive | ebranlard/welib | 679edeec85feb629dc27047a62422d469c6e0081 | 3486e87c6348e9580099fe5c360138e762ab3ea9 | refs/heads/main | 2023-08-09T13:31:40.253283 | 2023-06-16T18:17:09 | 2023-06-16T18:17:09 | 153,533,129 | 50 | 25 | MIT | 2023-06-16T18:17:11 | 2018-10-17T22:47:46 | Python | UTF-8 | Python | false | false | 2,015 | py | """
Performs simple BEM simulations of the NREL 5MW turbine for two operating conditions.
"""
# --- Common libraries
from welib.BEM.steadyBEM import calcSteadyBEM, FASTFile2SteadyBEM
import os
import glob
import matplotlib.pyplot as plt
MyDir=os.path.dirname(__file__)
def main(test=False):
# --- Rea... | [
"emmanuel.branlard@nrel.gov"
] | emmanuel.branlard@nrel.gov |
f6c28743af596b2f3a6eb5510fd037d64ba61fd2 | b5afe10bc5fcddc95b96d8fbfa2e1f27fe55cc17 | /app.py | 34d57788d8ddb5b285f5e557c2cd3a47b0513105 | [] | no_license | jmutakura/firstFlaskApp | 688edd6bd9f331f2d7af4132b4998fe72b20a799 | ecac6b7fe0afc147a2f0c0d0b0615f35e9fbb469 | refs/heads/master | 2020-09-29T08:42:08.507091 | 2019-12-10T01:23:08 | 2019-12-10T01:23:08 | 227,002,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from flask import Flask, render_template, request
from data import Articles
app = Flask(__name__)
Articles = Articles()
# Routes
@app.route("/")
def index():
return render_template("home.html")
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/articles')
def articles():... | [
"jmutakura@gmail.com"
] | jmutakura@gmail.com |
df7264eceeee50d4cf513657e6b7c6379a222927 | eb9dde3315aa3b48325830a7f375ac1f301e402c | /environment.py | e7d27849486de101d41932b4414433ac716fdd4c | [] | no_license | CristyanGil/Project2-DRL-Udacity | d554d219f13864a72c8d56d473997fb7100e1b67 | cd20ada0f43b99761a3e740260c0a49e4751cb6e | refs/heads/master | 2021-01-06T23:48:49.159724 | 2020-02-21T04:11:39 | 2020-02-21T04:11:39 | 241,517,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | from unityagents import UnityEnvironment
class Env():
"""Simplifies the interaction with the environment."""
def __init__(self, file_name="Banana_Windows_x86_64/Banana.app"):
"""Iniliaze new unity enviroment
Params
======
file_name (str): the location of the en... | [
"30477234+CristyanGil@users.noreply.github.com"
] | 30477234+CristyanGil@users.noreply.github.com |
8ecc3974806003a22c415c8e504372168a6114f2 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /mercurial/copies.py | ee103105920f23154f756850d0aa4a15d9d61a72 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,068 | py | # copies.py - copy detection for Mercurial
#
# Copyright 2008 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import collections
import heapq
import os
from .... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
2076e87530efc1a612a2e913284bf9236f2eb9f1 | 79bb25fbd8f94ea8448d15f4c3f472866656c2b3 | /pylung/libinfo.py | 6a96a92c438dc35dc6e9041c3b2332e2c84d270b | [] | no_license | dact931/test-alexnet-nodule-detection | 621e08600df5a4113f6ff927199ca4800d8fe355 | 09ae4ea7969b3136761a1ce90ba9cb26bfc1ff29 | refs/heads/master | 2023-03-16T07:26:52.292359 | 2020-03-25T09:17:18 | 2020-03-25T09:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | # coding: utf-8
"""Information about pylung."""
from __future__ import absolute_import
import os
import platform
def find_lib_path():
"""Find PyLung dynamic library files.
Returns
-------
lib_path : list(string)
List of all found path to the libraries
"""
curr_path = os.path.dirname(o... | [
"32585951+yyt1208732230@users.noreply.github.com"
] | 32585951+yyt1208732230@users.noreply.github.com |
f5b6c75f58424d4a61a85593047d73da700b6966 | 9f206c2741163881f37a8123d0bedc34359da4ca | /tests/test_comment.py | e3c11b296057b0413d10ed4c8e6993a008e38f19 | [
"MIT"
] | permissive | OsmanMariam/On-the-blog | 6eaa41a04b330669fe4535b52668cb9dd227e400 | 455bdb22d6768ca607afaff3b8587e710738e85d | refs/heads/master | 2022-10-17T20:07:15.233294 | 2019-12-03T08:38:25 | 2019-12-03T08:38:25 | 224,815,084 | 0 | 0 | null | 2022-09-16T18:13:55 | 2019-11-29T08:54:23 | Python | UTF-8 | Python | false | false | 1,490 | py | import unittest
from app.models import Comment,User
from flask_login import current_user
from app import db
class TestComment(unittest.TestCase):
def setUp(self):
self.user_Mariam = User(username = 'Mariam',
password = 'jasonmusa8',
email =... | [
"sufimariam8@gmail.com"
] | sufimariam8@gmail.com |
b9e0fecc192934b729bd9d3dcdb10babe1e359d4 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/idlelib/idle_test/test_autoexpand.py | 894e53a824f59742554580e124a0407a4653b948 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | ../../../../../.cipd/pkgs/2/_current/lib/python3.8/idlelib/idle_test/test_autoexpand.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
fdf2ebb912149a60688c5be344b9b422603aa93d | 20f4a06139d9e0b43d5a93f1955b4064ca08a966 | /Pymol/scripts/nVisualize-Pymol-PDB.py | ec5b3bc7570b4da92ea1f88cb3be3d65e94b5daa | [
"BSD-3-Clause"
] | permissive | tjmustard/Eta_Scripts | ca4c9e18f6c4bb6676e3672e77cb36a3173205cc | 7aa44cd8ce9648e27db62d58d683705d8fcb4120 | refs/heads/master | 2021-05-21T06:25:31.757798 | 2020-10-15T15:31:12 | 2020-10-15T15:31:12 | 252,584,079 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,517 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# Copyright (c) 2014, Thomas J. L. Mustard, O. Maduka Ogba, Paul Ha-Yeon Cheong
#
# PHYC Group
# Oregon State University
# College of Science
# Department of Chemistry
# 153 Gilbert Hall
# Corvallis OR, 97331
# E-mail: mustardt@onid.orst.edu
# Ph. (541... | [
"tjmustard@mustardfamily.com"
] | tjmustard@mustardfamily.com |
1cd7f9e0f3c4df2c36183550bab4529fd3cc1c11 | 4a9035a8c74fa3d12b6717d94dbb2fa9727e4d29 | /doc/LectureNotes/_build/jupyter_execute/chapter3.py | 5623c11694a390ef49ce4501193e706e2fe268a5 | [
"CC0-1.0"
] | permissive | smithis7/Physics321 | 6f877fc89f6a99a8bea1022551e6e878e9902881 | 406297c2a87b10557075435e38e8cb7f38088229 | refs/heads/master | 2023-04-11T12:38:26.201740 | 2021-04-23T20:53:16 | 2021-04-23T20:53:16 | 331,421,603 | 0 | 0 | CC0-1.0 | 2021-04-23T20:53:16 | 2021-01-20T20:19:36 | HTML | UTF-8 | Python | false | false | 69,243 | py | # Simple Motion problems and Reminder on Newton's Laws
## Basic Steps of Scientific Investigations
An overarching aim in this course is to give you a deeper
understanding of the scientific method. The problems we study will all
involve cases where we can apply classical mechanics. In our previous
material we alread... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
aabaddb27174173d297db88b42fd6b3a544340a2 | b0b514f98fff9882ead77ebc768070c2f2e9c275 | /tests/urls.py | 032daa6ec752252f329131270a7c4e624d5c6b42 | [
"BSD-3-Clause"
] | permissive | bfirsh/pytest_django | 901aa54927210f483a4460c4537017e744827895 | 504fb57bccbdb3c06cbf126c7f34af50e686c83e | refs/heads/master | 2021-01-23T07:16:33.634613 | 2012-11-15T00:09:05 | 2012-11-15T00:09:05 | 286,373 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'admin-required/', 'tests.views.admin_required_view'),
)
| [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.