blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
590b61967a5698271bc19a40975c341dfb51c8c2 | a255c201a092ed51fce179180bda83c2eba130fc | /in-class.py | 36e7098126a12edf5b711b4c860a7758a1c7601b | [] | no_license | aligerami/class-assignment | 2381a55f97f092812a30a1d968c6d31dc3b4939b | 4d88ebe2af2456766c6eb5abfe3c2f142fff55cb | refs/heads/master | 2021-01-23T23:04:16.859924 | 2017-09-09T16:53:23 | 2017-09-09T16:53:23 | 102,955,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | in-class.py | def q_1(s1,s2):
return s2.find(s1) !=-1
def q_2(s1):
temp=""
for i in s1:
if (ord(i)>=97 and ord(i)<=123):
temp(i)
return is_palindrome(temp)
def is_palindrome(string):
for i,char in enumerate(string):
if char != string[-i-1]:
return False
return True
... |
192725d4ea3c4997ddb3f37c485a62e6fb53fd8e | b00c54389a95d81a22e361fa9f8bdf5a2edc93e3 | /external/lldb/test/functionalities/command_script/import/thepackage/TPunitB.py | 52db603e5123572d1c1b40db0072de45c2ff9985 | [
"NCSA"
] | permissive | mirek190/x86-android-5.0 | 9d1756fa7ff2f423887aa22694bd737eb634ef23 | eb1029956682072bb7404192a80214189f0dc73b | refs/heads/master | 2020-05-27T01:09:51.830208 | 2015-10-07T22:47:36 | 2015-10-07T22:47:36 | 41,942,802 | 15 | 20 | null | 2020-03-09T00:21:03 | 2015-09-05T00:11:19 | null | UTF-8 | Python | false | false | 105 | py | TPunitB.py | def command(debugger, command, result, internal_dict):
result.PutCString(u"hello world B")
return None
|
26dc087780298bcb93d99918d1b4d471232f707f | 2c4d1205bdac08cb6c84d1e05a5ca725333de737 | /execconf/tests/data/merge_option-merging.py | a6f692306b2c66686124dbc95538fa94fe31c671 | [] | no_license | DriverX/execconf | d38a6ba678af7f896f19bb884c2a8951b3790002 | 80006d99953bc1b30c2a5a76eb6c35decba29222 | refs/heads/master | 2016-09-08T01:54:50.423454 | 2013-10-04T16:39:29 | 2013-10-04T16:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | merge_option-merging.py | MERGE = True
OPT1 = {
"BAR": {
"BAZZ": 22
},
"BAZ": True,
"QUX": 33
}
OPT2 = {
"LVL1_KEY2": True,
"LVL1": {
"LVL2_KEY2": True,
"LVL2": {
"LVL3_KEY2": True,
"LVL3": {
"LVL4_KEY2": True
}
}
},
}
OPT3 = {
... |
6831534f455c204b0edb0d176c60c6fca4844f6c | 1fe2b67070f76d848211eb222e5472ce596a087d | /Python-Django-Course-Udemy/Part10_Simple_Game.py | fd179490437f4534518c5484a81923ff4e51ad36 | [] | no_license | nycowboy04/PythonProjects | cf026adf478bf215550d91cc34a645cb67267afd | a6c6f986260d73919262e5ef823a9ed2d256fb8c | refs/heads/master | 2021-04-09T13:09:44.214923 | 2018-05-10T21:22:32 | 2018-05-10T21:22:32 | 125,517,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | Part10_Simple_Game.py | ###########################
## PART 10: Simple Game ###
### --- CODEBREAKER --- ###
## --Nope--Close--Match-- ##
###########################
# It's time to actually make a simple command line game so put together everything
# you've learned so far about Python. The game goes like this:
# 1. The computer will think o... |
0ddfd836beedbf193e7593dfaeb1c37ce06465dd | ddda55fcfc84ac5cd78cfc5c336a3df0b9096157 | /drivers/hal/gd32v/devices/SConscript | b79d5a186a1334954d619f21df5f02c7a2a07cd2 | [
"Apache-2.0"
] | permissive | liu-delong/lu_xing_xiang_one_os | 701b74fceb82dbb2806518bfb07eb85415fab43a | 0c659cb811792f2e190d5a004a531bab4a9427ad | refs/heads/master | 2023-06-17T03:02:13.426431 | 2021-06-28T08:12:41 | 2021-06-28T08:12:41 | 379,661,507 | 2 | 2 | Apache-2.0 | 2021-06-28T10:08:10 | 2021-06-23T16:11:54 | C | UTF-8 | Python | false | false | 321 | SConscript | Import('OS_ROOT')
Import('osconfig')
from build_tools import *
pwd = PresentDir()
# add the general drivers.
src = Split("""
""")
if IsDefined(['OS_USING_DEVICE']):
src += ['gd_devices.c']
path = [pwd]
group = AddCodeGroup('hal/devices', src, depend = ['SOC_FAMILY_GD32VF103'], CPPPATH = path)
Return('group')... | |
78af51af6460325cda5fb9de1339e9bf317b71ad | 8ad913a2d6564fd7a03fe0a9953506921b5531a9 | /utils/output_handling.py | 58a38ad16068e063c8ccd6409b6f86af990c2f12 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Qinusty/bazel-bench | 7b7917a3a5554b4f11cd1e7b595114583ba2be07 | 0a7bdd0568ed3f02d4e4fd151861e67bc2daebc6 | refs/heads/master | 2020-09-22T23:16:54.129572 | 2019-12-12T18:19:00 | 2019-12-14T00:20:09 | 225,342,077 | 0 | 0 | Apache-2.0 | 2019-12-02T09:58:32 | 2019-12-02T09:58:32 | null | UTF-8 | Python | false | false | 2,329 | py | output_handling.py | # Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
e248736f825e86c4fbdad618e7f15bf11e5732bb | c71b89a436406be2d86b07266610e729786ad941 | /VideoManagement/urls.py | ac7e4ddda82f6edf4baab951c753d1f06aaf792f | [] | no_license | chivequiachon/nogistream | 7362475d40e08427c98724c59aa399b173ecefc2 | 2b849c3ba6a6edbea0411917cf6b86ce35dc0838 | refs/heads/master | 2020-04-23T16:27:47.345788 | 2019-04-27T05:30:03 | 2019-04-27T05:30:03 | 171,298,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | urls.py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.home_page, name='home_page'),
url(r'^list/$', views.list_videos, name='list_videos'),
url(r'^list/search/$', views.search_videos, name='search_videos'),
url(r'^view/$', views.view_video, name='view_video'),
] |
1608b92c718c6bd1ea50f78451d084390d8e5653 | ba98c1664ee3d35f7667c52c50c9c3a4bee89997 | /test_primal_simplex.py | d9cc18e42ce14b7ed6419a590cbb4c85bbc05884 | [] | no_license | ShiyaoBian6639/Simplex_python | af0bfb60229c1b2bf9b3b2e456e4a1d6b041c7ec | 49e8c1080eaaf94f896267286e1a376788aa5559 | refs/heads/master | 2023-02-25T02:19:47.587977 | 2021-01-24T17:12:49 | 2021-01-24T17:12:49 | 331,609,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | test_primal_simplex.py | import numpy as np
from PrimalSimplex import primal_simplex
from readMPS import read_mps
"""
max z = 60 x1 + 30 x2 + 20 x3
s.t. 8 x1 + 6 x2 + x3 + s1 = 48
4 x1 + 2 x2 + 1.5 x3 + s2 = 20
2 x1 + 1.5 x2 + 0.5 x3 + s3 = 8
Cbv * inv_v * aj - cj: coefficient of xj in ... |
075ef5c26c3fe740da285ab46ad665e6dd625dd4 | 412593132d011689e59b32c5d0ef569e351ba1be | /read.py | b52ae03c2c22b574c5725745312cde90b187bcc8 | [] | no_license | hkzhugc/progressive_growing_gan_4_super_resolution | d64fe85724b0a0a95821c4825840b8f033046d01 | 8071e2971345f42a34dd3b9d8b08624c8e19f8c5 | refs/heads/master | 2021-09-13T03:07:20.773073 | 2018-04-24T09:16:21 | 2018-04-24T09:16:21 | 130,056,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | read.py | import tensorflow as tf
import PIL.Image
import numpy as np
import os
import cv2
import scipy.misc
def read_data(path, num = None, color = 'a'):
list_ = []
for root, dirs, files in os.walk(path):
for file in files:
if num != None and len(list_) >= num:
... |
a381060cff20b2edbe95224509b0995d76f5359f | 6f94299d849b3c9dc8f438d193f9dd1b5d8379e5 | /Les.6.1.py | 69067cd76f8d3fb3d12691315d1da276dae890e7 | [] | no_license | Marusya-ryazanova/Lesson_6 | 37f5ceeb6423668b13345585faaf02c244a2b316 | 45622a5e238aa48a2b54ba46a94f7cf68b855e01 | refs/heads/master | 2022-12-16T16:23:52.393041 | 2020-09-17T16:34:14 | 2020-09-17T16:34:14 | 296,266,070 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | Les.6.1.py | coin = ('Bitcoin', 'Ether', 'Ripple', 'Litecoin')
code = ('BTC', 'ETH', 'XRP', 'LTC')
new_dict = {key: value for key, value in zip(coin, code)}
print(new_dict) |
98bc81b1cfbfb2d34c21884ec45ddfabca5a4347 | 1033c93917117f462771571c29dd046954582bd8 | /revscores/features/seconds_since_last_user_edit.py | ec06bfd5a1bf9d035a6c19ec6f20ddd6695fb46c | [
"MIT"
] | permissive | jonasagx/Revision-Scoring | d4e3e892ac5de3a7f3032ef2b4fcc7b6efb20330 | dfacba014e30d49577aa1a56aab13393ecede9d5 | refs/heads/master | 2021-01-17T11:57:39.393734 | 2015-01-10T19:13:02 | 2015-01-10T19:13:02 | 29,064,762 | 0 | 1 | null | 2015-01-10T19:13:03 | 2015-01-10T17:25:22 | Python | UTF-8 | Python | false | false | 519 | py | seconds_since_last_user_edit.py | from ..datasources import previous_user_revision_metadata, revision_metadata
from .feature import Feature
def process(previous_user_revision_metadata,revision_metadata):
return revision_metadata.timestamp - \
(previous_user_revision_metadata.timestamp or
revision_metadata.timestamp)
s... |
95980a02ed0260904a6ede5f28dce99c97f1ff44 | 671d782046f654385ed5d7f028759f31320eaf09 | /core/urls.py | 35033dbd9a307feca96b53b1bc1129f53aec46db | [] | no_license | wotgl/ask-project | a8b9e2d56f6c488b7fc6ecefb31053ee096b86ba | a1c0a2838ecc3d9c9028e765fb83db4080a4081e | refs/heads/master | 2021-05-28T18:54:08.703594 | 2015-05-28T19:57:40 | 2015-05-28T19:57:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | urls.py | __author__ = 'sasha1003'
from django.contrib import admin
from django.conf.urls import patterns, include, url
from core.views import main, question, tag, signup, login_view, logout_view, base, ask, new_answer
from core.views import settings, edit_profile, change_password, edit_photo, profile, like, correct_answer, se... |
7b9b8c330766a80bd46b8897adecdb2e7b21d8c7 | 8fb86a655e9b852ca0aa52f96fef42adeef98f56 | /cache-dependency/from_host/patch_and_cache_python.py | b54828175522a75be26a4203af6088d0a923b57d | [
"BSD-3-Clause"
] | permissive | P1umer/bugswarm | e1b3459b2f1904d69d67110e94f5a3e1da2f4aa5 | 0069edfe6ff03dc21001b765f2b72ad9346fbf20 | refs/heads/master | 2023-07-05T06:10:23.310825 | 2021-09-02T21:20:15 | 2021-09-02T21:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | patch_and_cache_python.py | import fileinput
import subprocess
import sys
def _run_command(command):
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
stdout, stderr = process.communicate()
stdout = stdout.decode('utf-8').strip()
stderr = stderr.decode('utf-8').strip()
ok = proce... |
de5fe42d4d8b13d8a91ed15185786cfb827e23ae | 5aea1903d8b118c7ec6ac65776d9e4befbaa3411 | /VanKrevelen.py | bf1f784b5f3c288e43e61ea9892da99e6ef55327 | [] | no_license | HegemanLab/VanKrevelenLocal | 7454b50492b3fb9ea4346a22b3f93e53f4f5077e | 0abbc8d2cc0b013ec970906d7a14c2ceadf31066 | refs/heads/master | 2020-12-26T11:24:07.426362 | 2018-06-06T16:30:39 | 2018-06-06T16:30:39 | 63,805,083 | 6 | 0 | null | 2018-06-06T16:30:40 | 2016-07-20T18:32:50 | Python | UTF-8 | Python | false | false | 2,544 | py | VanKrevelen.py | '''
Takes a csv as an input and works through the compounds to extract the number of C, H, and O
present. It also notes if N is present and marks those points, then call a method to calculate
the ratios of H:C and O:C and plots them.
'''
import os
import sys
import matplotlib.pyplot as plt
from extractNeededElemental... |
d9f345d53e674222bd0c9da0c8caae5497035b89 | f36a067d56b683357ac8c648f6db6e589c068945 | /django_app/movie/serializers/famous_line.py | 2eaa296d6b8d2385c5c19a5cc3c49cda9f4ceb8d | [] | no_license | We-Lab/popcorn-backend | 5bdb228c75f433cc6bfb5b39f4f9b60e85242ab7 | 62e74916e108b6572b5e0695614d0d46e4225e25 | refs/heads/master | 2021-01-12T14:48:28.681456 | 2017-01-02T03:58:46 | 2017-01-02T03:58:46 | 72,095,886 | 3 | 2 | null | 2017-01-02T03:58:47 | 2016-10-27T10:05:43 | Python | UTF-8 | Python | false | false | 1,379 | py | famous_line.py | from rest_framework import serializers
from movie.models import FamousLine, FamousLike
class FamousLineSerializer(serializers.ModelSerializer):
"""
명대사 직렬화
"""
author = serializers.StringRelatedField(read_only=True)
# movie = serializers.StringRelatedField()
class Meta:
model = Famou... |
df16dcbca4d314ee257ac4830d8b6b4a82f241da | d015cfe12d255e2f86b5bf19f4a66152ed165dba | /app.py | 7aeaf9a9d778c0154e1f6903cb7c2ea075a6e94a | [] | no_license | Code-Institute-Submissions/Zesty-Recipes-MS3 | 0db595ca0c33016010583dd04070b23878a52ccd | 0fdafa0e2757191b8baa6c5378dcbd3776a1b2cb | refs/heads/main | 2023-06-21T12:35:59.509652 | 2021-07-21T23:15:45 | 2021-07-21T23:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,777 | py | app.py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from flask_paginate import Pagination
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
... |
728d7aa1ceedc3621b4440d8fda0da0229d184e1 | 6260fd806b3bf82a601c86c8a903b49c983d9dda | /w3resource/list/7.py | 820e3ef184d58abd63b49cad4889f1b47a290f74 | [] | no_license | skybohannon/python | 6162077e4f18d0ed273d47c342620942e531031b | b78ac8ff1758826d9dd9c969096fb1f10783a4be | refs/heads/master | 2021-09-05T07:09:23.844665 | 2018-01-25T02:58:59 | 2018-01-25T02:58:59 | 106,215,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | 7.py | # 7. Write a Python program to remove duplicates from a list.
dupes = []
uniques = []
def remove_dupes(l):
for x in l:
if x not in dupes:
uniques.append(x)
dupes.append(x)
return "Unique numbers are: " + str(sorted(dupes))
print(remove_dupes([10,20,30,20,10,50,60,40,80,50,40])... |
516a297cdcc61b9f9a5b3239d22479abdc42f363 | 2b0f3c03e1e6ec56f01b65bedb9fec608a0f0d99 | /Project 6/Practice.py | f11218830aa51b78d5e7e0826ffc2f5bb4e8f77e | [] | no_license | Spencerguo11/CSE-250 | c6d144f5d3f97bd34db9203b52d6ff7eec05b46a | d3bce3eb037af22d64d65c9bd8ab29153e48d0d8 | refs/heads/master | 2023-06-17T03:41:57.049694 | 2021-07-08T19:37:22 | 2021-07-08T19:37:22 | 383,583,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | Practice.py | # %%
git --version
# %%
git config --global users.name "Spencerguo11"
git config --global user.email "spencer.guo11.gmail.com"
# %%
|
910c2ab169f2af05ca75174569d0400912ff1cc9 | 36ed2a53853977df7dc1b7e15a115d5343813636 | /tests/test_util.py | f0169760b8e338f2af574fc17189e6a898db9591 | [
"MIT"
] | permissive | prezi/snakebasket | 544602197edeb37014b06ee19bc6b6611db5a5e7 | 8e2e91ef2c7d034fa45c8005e5217fec333808ee | refs/heads/master | 2021-05-16T03:11:08.327852 | 2014-05-14T11:02:52 | 2014-05-14T11:02:52 | 6,125,063 | 24 | 5 | null | 2019-04-03T11:59:36 | 2012-10-08T13:47:45 | Python | UTF-8 | Python | false | false | 25 | py | test_util.py | ../pip/tests/test_util.py |
389b2d891b1b18fde6a440a73e00b15ab73482e0 | 830ceff14cb5ad1835f83e92a495711bba929c54 | /factories/urls.py | 2c3d27364438f45cc7d02e99d96c392f3e4e0d29 | [] | no_license | ersul4ik/blazer | 7bbe02ea8e40eda7cdf3880b97e278d6b668ff1a | 3bafba0c5ed5e5d51b88a0eecafaee81a6893d9c | refs/heads/master | 2023-03-24T08:53:12.122780 | 2021-03-01T02:51:32 | 2021-03-01T03:23:06 | 342,591,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | urls.py | from django.urls import path
from factories import views
urlpatterns = [
path('login/', views.LoginView.as_view(), name='login'),
path('logout/', views.user_logout, name='logout'),
path('', views.DataFixtureView.as_view(), name='fixture-list'),
path('add/', views.DataFixtureCreate.as_view(), name='fix... |
083e061350f9f12125ef3a09be1e0f349f2657b3 | 0f151d1e83401b331c2a1bb673f2a91305776ada | /CoursePremium/views.py | 816cc4ac6dff5bfb8bda14ad9366e356369b6518 | [
"MIT"
] | permissive | jramnai/PremiumCourse | 99be527306d67c28a318fa462bd7a2e93ae1f6d2 | 85400f85b84905c893160b9ba8177a006b159cae | refs/heads/master | 2020-03-24T13:49:07.832495 | 2018-07-29T12:42:35 | 2018-07-29T12:42:35 | 142,752,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | views.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, render_to_response
from .models import Premium
from django.http import HttpResponse
# Create your views here.
def request_course_creator(request):
"""
User has requested course creation access.
"""
use... |
37e5e74f887ca51ea0d508011757d27b978ba7fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02572/s986822138.py | 380b0bce6b59059efcdd0bceeb8110067d50f57c | [] | 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 | 214 | py | s986822138.py | def resolve():
n = int(input())
a = tuple(map(int,input().split()))
N = 10**9+7
s = sum(a) % N
ans = 0
for i in a:
s -= i
ans += s*i
ans %= N
print(ans)
resolve() |
c174dfa7ff15f4170c91b745b99def6d7133d3b6 | 70280955a5382d73e58395eba78c119a400f4ce7 | /abc/66/3.py | 101a858e116dc6522d0a4c44063093313c6e70e7 | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | 3.py | from collections import deque
n = int(input())
a = list(map(int,input().split()))
ans = deque()
for i in range(n):
if (n-i-1)%2 == 0:
ans.appendleft(a[i])
else:
ans.append(a[i])
print(*ans) |
6bec1921ff749ac731c9493b6900113a77f07509 | ee28f3a0e0f92243cf812ee30e84ac7e641bbf6f | /app/migrations/0004_remove_tvshow_libera.py | d17f75c898eb3f8019e817803a04627b764f8b58 | [] | no_license | VictorSHJ/django_tv_shows | fe4f43de184f5395006d58661da694e0b60af78c | 184fe20da554edb615a40b9421a03877967f4fe9 | refs/heads/master | 2023-07-10T04:33:13.264915 | 2021-08-21T01:22:01 | 2021-08-21T01:22:01 | 398,437,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | 0004_remove_tvshow_libera.py | # Generated by Django 3.2.5 on 2021-08-20 01:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0003_alter_tvshow_libera'),
]
operations = [
migrations.RemoveField(
model_name='tvshow',
name='libera',
),
... |
0f7c51ae1a52eac180f5429030947f346909a661 | e3bc6272fe4ce95241580954656aec2dc8a17c77 | /main.py | 4358dfcbf7ee90d9c95383f2003acf563bedc659 | [] | no_license | brentleejohnson/python-central-tendency | 5e254e55367b0fadec7b826ab14736adf75365e7 | d96c08769ce5e1865f68d339badb7922cfdb04f3 | refs/heads/main | 2023-05-07T14:20:52.432313 | 2021-05-31T12:32:19 | 2021-05-31T12:32:19 | 372,490,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | main.py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt
test_names = ["Jayden", "Brent", "Jason", "Yamkela", "Jason 2"]
test_scores = [12, 99, 65, 85, 42]
x_pos = [i for i, _ in enumerate(test_names)] # labels on the x-axis
# labeling and visuals
plt.bar(x_pos, test_scores, color='black')... |
271aa6b712351fec24cd2bd742a85695be31f63c | cc9cf69b1534dc0d9530b4ff485084162a404e34 | /leetcode/without/leetcode_86.py | e9d196e363a1b04f3360cffb61d28de8bde43f7e | [] | no_license | NASA2333/study | 99a58b2c9979201e9a4fae0c797391a538de6f45 | ba63bc18f3c788090e43406315497329b00ec0a5 | refs/heads/master | 2021-05-03T22:26:52.541760 | 2018-02-07T02:24:55 | 2018-02-07T02:24:55 | 104,988,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | leetcode_86.py | '''
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
For example,
Given 1->4->3->2->5->2 and x = 3,
return 1->2->2->4->3->5.
'''
def partition(s):
l... |
8cb6044fc6439074393e8bf7915d1631d5f21ab7 | 6ad70b8ace3226423085d96d6e7556b4eaee5182 | /Les 1/PE 1_2 (strings).py | 5dae8a9564847757c15359d84b94561b53228e01 | [] | no_license | OrtizHU/Python_Opdrachten | 4be5f0619a74f8fc3d8a4b90439e365f09d212f9 | 8ee3097b369f9023410b447c0fad5ef73ac1a7f3 | refs/heads/master | 2021-05-05T14:05:25.964821 | 2017-11-14T09:45:57 | 2017-11-14T09:45:57 | 105,121,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | PE 1_2 (strings).py | # vraag A
word_count = 'Supercalifragilisticexpialidocious'
print('Dit woord heeft {} letters.'.format(len(word_count)))
# vraag B
woord = 'Supercalifragilisticexpialidocious'
if 'ice' in woord:
print('ice is in uw woord')
# vraag C
a = 'Antidisestablishmentarianism'
b = 'Honorificabilitudinitatibus'
if len(a) >... |
8fc7fc9867bf9ac49fd66e26fb0a5650f488388e | 3347d915d7d96d40ed9d10b0d5083d1651e02f21 | /app.py | ab97f55e4ec77ae7ef39698e117652c27301ec8f | [] | no_license | bglaudesc/Project2 | e5b2ffe51536b9a69ebad524443149f3d6033698 | 10856d0b9fbe7c13aa3a2e7f7f44467c924e034c | refs/heads/master | 2022-12-13T10:51:08.869980 | 2020-09-22T01:46:45 | 2020-09-22T01:46:45 | 291,586,122 | 0 | 1 | null | 2020-09-10T16:17:20 | 2020-08-31T01:36:06 | Jupyter Notebook | UTF-8 | Python | false | false | 1,097 | py | app.py | from dotenv import load_dotenv
import os
from flask import Flask, render_template, redirect,jsonify
from pymongo import MongoClient
load_dotenv()
# secret = os.getenv("Mongouri")+"/airportweather"
secret = os.getenv("Mongouri")
# Create an instance of Flask
app = Flask(__name__)
# Use PyMongo to establish Mongo co... |
edebd710a737002a198616c38fae100291124b8b | fdd0c800b7043f36cf5bc20ba443cab7663ebd14 | /Sooxie/__init__.py | f8c8e40c59e62e9da721533df7dc051e9d1aa231 | [] | no_license | yanzhilong/SooXie | aad6b7034f1a21a8bd3ec7ec808b0fb30d54a3eb | 998e5dd6902ad9812202d50ddfe3d4acf9d19b88 | refs/heads/master | 2020-12-03T00:18:04.951966 | 2017-12-12T06:40:58 | 2017-12-12T06:40:58 | 96,012,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | __init__.py | from Sooxie import db
#db.init_db_engine('mysql+mysqlconnector://root:tiger@localhost:3306/yanzhilong')
db.init_db_engine('mysql+mysqlconnector://root:GFDonx!@#@!@39.108.160.157:3306/yanzhilong')
|
75d70d7a162015f915a8ff772a584114706848f8 | db839fa5b546c51b4bb1d503dc74d56b4469dc61 | /day22.py | e652e56392a7c581d9bec1463fda98a49519aa30 | [] | no_license | quantum-booty/advent-of-code-2020 | 6c1a7d5bbe182633c9ea0f018e199d0dd8dc9d7e | ed985765d02f4329a6028e23a5b10fa8a17b9ef1 | refs/heads/master | 2023-02-05T12:05:49.263842 | 2020-12-25T15:05:34 | 2020-12-25T15:05:34 | 319,065,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | day22.py | # With help from Joel Grus. I really suck at doing recursion!
# But I've learned a valueble lesson: recursion in a lot easier to do with
# self.attributes than with return values! Not needing to keep track of what
# returns what is a huge convenience. Also using the appropriate data structure
# can simplify the problem... |
bda056a755b4ee4b5e75489f90284d04c5aa928a | 4c356725c6394c92b1d2fb867c269d4772180529 | /PythonFlaskBlog/05_posting/appmain/post/models.py | 860e86dde19a15ebb7c34c109cd76ad2f10c8a64 | [] | no_license | sgkim-pub/flask_book_2ndEd_examples | 070311eb438773587f06a52a8ca04a7a2e98fee8 | 552f8d419f597cdd4e3f6f67883945cfbccdde36 | refs/heads/master | 2023-07-11T18:10:22.609342 | 2021-08-01T01:54:00 | 2021-08-01T01:54:00 | 332,109,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | models.py | from datetime import datetime
from appmain import db
class Post(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(100), nullable=False)
author = db.Column(db.String(30), nullable=False)
datePosted = db.Column(db.DateTime, nullable=False, default=datetim... |
c3d972f8a9f5d49b6e4b361338972d257d241210 | c66ee0c044bfad62b9bbd2a09f969d48b385cdc6 | /ThingCloud/TCD_lib/upyun/compat.py | 22d1ca87a0fd52a46b591c93b3d532cd9a471122 | [
"MIT"
] | permissive | nick6918/ThingCloud | 631bc2d52ab4515509efd6b531241f5eab9bcccc | 3ad908538f5f80345fd76c1259d56084bee1dfe0 | refs/heads/master | 2020-04-06T03:34:08.365873 | 2016-07-26T03:54:07 | 2016-07-26T03:54:07 | 38,227,615 | 3 | 0 | null | 2016-07-26T03:54:08 | 2015-06-29T04:23:48 | Python | UTF-8 | Python | false | false | 496 | py | compat.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys
PY3 = sys.version_info[0] == 3
if PY3:
import http.client as httplib
from urllib.parse import quote, urlencode
def b(s):
return s.encode('utf-8')
builtin_str = str
str = str
bytes = bytes
else:
import httplib
from url... |
ede20bdeac534730e51bdd167bbe8a9fef9dae08 | 64e1fc82377ab245f0ed623d7d647d259b858b85 | /Kattis/Python/daceydice.py | 8bab3587e34a149fa99ffb361641ac2b72c1eefc | [] | no_license | Hansel34/CPC | 46d026da576f7a322cc162e019ffec3b9d35c198 | ff062733c65f1707f8e2754763190049d39b977d | refs/heads/master | 2021-10-24T22:05:34.556023 | 2019-03-29T06:22:51 | 2019-03-29T06:22:51 | 109,027,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | daceydice.py | cases = int(input())
for a in range (cases):
length = int(input())
matrix = []
for x in range(length)
line = matrix.append() |
10a8102041a96e3132d23892125240d98dcc3581 | cb7c8558d3393f96e9e95c7632f06ebfdd123017 | /python2/vax_dbsnp_installer.py | 4702513bfbc52d03ac163ef8db98164380474a52 | [] | no_license | myourshaw/pypeline | b523f47be3c1a89ca459b85ad6d2a75bf6a21b3a | 99234ca37ff706edfb14c56d5d3e2058928d7e51 | refs/heads/master | 2016-09-05T14:30:17.491788 | 2015-05-21T21:50:15 | 2015-05-21T21:50:15 | 32,175,948 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,482 | py | vax_dbsnp_installer.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import argparse
from ConfigParser import SafeConfigParser
from contextlib import closing
from getpass import getpass
import re
try:
import MySQLdb
import MySQLdb.cursors
except ImportError:
raise ImportError,"The Python MySQLdb module is re... |
09c2fe938f3a18e1c07752c42b22138e8c1b7487 | 8d8274acbfb3121c4aaab18ddb599ef82b369fdb | /pre_lgb_model.py | 3d1bc5fab5db7c33dc546164e84adaa2e8637c3d | [] | no_license | hangtongluo/ctrip001 | 8477bf6962aa7ef7950b1909f61c7192805674ec | 74ee29a1e09639400562775441693fb206491bca | refs/heads/master | 2021-07-05T14:19:13.386073 | 2017-09-30T06:04:19 | 2017-09-30T06:04:19 | 101,007,536 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | pre_lgb_model.py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 11 10:46:38 2017
@author: Administrator
"""
import gc
from collections import Counter
from datetime import datetime
import time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cross_validation import train_test_split, St... |
a1744017435f0b368a47db19ad3cb558f5e557e9 | 054a51065940bd7b7360fba0ec1459df844cb79e | /tests/client.py | 5874f33fc1589ae742cb04febded9e961a5bea45 | [
"MIT"
] | permissive | eadwinCode/graphene-django-extras | dbda1ab677c63141990510dbcde2dca956374850 | 2d0f2b8bd3d3d01ff387429114fa5acf2695e9c1 | refs/heads/master | 2022-11-17T04:41:12.889091 | 2020-07-18T08:28:02 | 2020-07-18T08:28:02 | 261,109,926 | 2 | 1 | MIT | 2020-05-04T07:41:09 | 2020-05-04T07:41:08 | null | UTF-8 | Python | false | false | 400 | py | client.py | from django.test import Client as BaseClient
from django.urls import reverse
class Client(BaseClient):
url = reverse("graphql")
def query(self, query):
response = self.get(path=self.url, data={"query": query})
return response
def mutate(self, payload):
response = self.post(path=s... |
f1bb5fd9c9a2b40d65fee586f683caa0166ceadf | 58e2da2822425ee79160d0fce5835d76f6d4faa7 | /cookiecutter/operators/stat.py | 146feffad6472389cf02dee38a1480ce32cfbc05 | [
"BSD-3-Clause"
] | permissive | bendhouseart/nuki-tmp | 838ca65dc67284d145df014dc801e697147be50e | 42a0e54fa8f9b84eb81d84d560a4c1a67563d8c5 | refs/heads/master | 2022-12-23T16:18:04.316742 | 2020-08-10T20:17:43 | 2020-08-10T20:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | stat.py | # -*- coding: utf-8 -*-
"""Operator plugin that inherits a base class and is made available through `type`."""
from __future__ import unicode_literals
from __future__ import print_function
import logging
import re
import warnings
from cookiecutter.operators import BaseOperator
from cookiecutter.config import merge_c... |
1792e60c88ba2883432a41a41d9bd2f451617d13 | 03e3b582e8e031d615c7a49c6e18950379656cfa | /setup.py | 38e969b27dec345b166383aa1c02020a182a3ba3 | [
"MIT"
] | permissive | gregdeon/online-goban | 3b9b49eb430160227b710bf2370bb87375785f32 | eb86479d0922e810693a027ce2556f6e6a0b10d7 | refs/heads/master | 2021-05-02T00:43:18.919177 | 2018-03-22T19:42:31 | 2018-03-22T19:42:31 | 120,950,833 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | setup.py | from setuptools import setup
setup(
name='online_goban',
version='0.1',
description='',
author="Greg d'Eon",
author_email='greg.l.deon@gmail.com',
packages=['online_goban'], #same as name
install_requires=['opencv-python'], #external packages as dependencies
) |
1bc1cce656e715354d007c37e34be6140ac595aa | 7f46ad4b122959b6961dd5f2a85c6bf2e660c0f3 | /ubx/Utilities.py | a0d3a3350a8d3212ee64fd07380f2df27bbd0713 | [
"MIT"
] | permissive | IOTECH-Donegal/HeadingSensor | 3b4a2e917a4068dceee740c055007cbec782a4d1 | ff3fdfa00ba0290b155147a309234d7c836c4091 | refs/heads/main | 2023-08-21T21:59:32.335225 | 2021-10-23T14:54:00 | 2021-10-23T14:54:00 | 400,872,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | Utilities.py | """
Utilities for UBX sentences.
"""
from datetime import datetime
import os.path
def log_file_name(extension):
"""
Create a file name in the logfiles directory, based on current data and time
Requires the computer to have an RTC or synched clock
"""
now = datetime.now()
log_file_name = '.\... |
1af0555b1294ebd6efc9d790574fbdcf566ee787 | 1a69ee7f38c1a99198ae8a6fd9b1e27150bbaa30 | /day23.py | a7f2497ad75ecc6c999842ef6fc21a95c5f258bb | [] | no_license | jjpowell99/AdventOfCode2020 | af4ac9e50880db06cc4eab68ce075a2e0f486f2a | 54e35f0a07fad014f8242be60c58a9bd62516084 | refs/heads/master | 2023-02-02T19:02:13.183414 | 2020-12-27T16:52:05 | 2020-12-27T16:52:05 | 317,369,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | day23.py | def main():
input_file = "input/day23.txt"
with open(input_file, 'r') as data:
lines = data.readlines()
cups = list(map(int,list(lines[0].strip())))
currentCupInd = 0
removed = []
mod = 10
for i in range(100):
removed = []
currentCup = cups... |
5b33615e1890631bac68801310e4b606ac41cb13 | 5f52ee8c97f7414cb9aaf557f9869e0e13347fd2 | /tests/unit/common/codec/hydration/v2/test_temporal_dehydration.py | 7cad75d57eef9aa568c3fa5a339d29145ae00b0d | [
"Apache-2.0",
"Python-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | polyrize/neo4j-python-driver | 994dcb2a9e87949798b5d3fbd6a49f4436c4ae7c | d1323c9471f57bc01962ee336bb032e1656c7b30 | refs/heads/5.0 | 2023-03-19T11:55:59.956994 | 2023-01-12T07:09:37 | 2023-01-12T07:09:37 | 230,107,846 | 0 | 0 | Apache-2.0 | 2019-12-25T13:37:09 | 2019-12-25T13:37:08 | null | UTF-8 | Python | false | false | 4,328 | py | test_temporal_dehydration.py | # Copyright (c) "Neo4j"
# Neo4j Sweden AB [https://neo4j.com]
#
# This file is part of Neo4j.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2... |
33867677611ceb757f6973eb70368c9f75f3ce92 | bbd92cca4c7a0cdb5c65b63a0aedc40e007b0f6a | /modules/spartan/manipulation/grasp_supervisor.py | 125c4b73686540aa184be14ef9176ed84f4b62e0 | [
"BSD-3-Clause"
] | permissive | mpetersen94/spartan | f3dd37cc64fa5e66d2cd0b73d91e0e94885f2100 | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | refs/heads/master | 2020-05-31T12:09:33.384262 | 2019-05-28T16:00:00 | 2019-05-28T16:00:00 | 190,273,893 | 0 | 0 | NOASSERTION | 2019-06-04T20:24:11 | 2019-06-04T20:24:11 | null | UTF-8 | Python | false | false | 128,361 | py | grasp_supervisor.py | # system
import os
import numpy as np
import random
import copy
import time
# ROS
import rospy
import std_msgs.msg
import sensor_msgs.msg
import geometry_msgs.msg
import visualization_msgs.msg
import tf2_ros
import rosbag
import actionlib
from actionlib_msgs.msg import GoalStatus
import ros_numpy
# spartan ROS
import... |
b59dfd97a2b52ddef4e37557ea96bff9edf34989 | 14de6d507e471d582a7e7f5cba898f72f6ba186d | /python/Construct-Binary-Tree-from-Inorder-and-Postorder-Traversal/sol.py | 2fdd3ab9a41a71f2fec6d0c40216e745eff9f521 | [
"MIT"
] | permissive | yutong-xie/Leetcode-Solution | a7d9c1f73a0fecd9de1d04dbd4c06393959dd95a | 6578f288a757bf76213030b73ec3319a7baa2661 | refs/heads/master | 2023-03-30T01:59:58.554650 | 2021-03-27T21:09:46 | 2021-03-27T21:09:46 | 290,101,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | sol.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2020, Yutong Xie, UIUC.
Using recursion to construct binary tree from postorder and inorder traversal
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
... |
22afc6b9df87ef1eba284da20a807366278c24d4 | f4653b4bd7528150a53c8f454658c00d7ea0b836 | /cbm/ipycbm/ipy_get/get_settings.py | c56764960ff66d729f1e47f8092cf69abe15c7e0 | [
"BSD-3-Clause"
] | permissive | mokasini/cbm | ccb09cb8ab96e6b06b0e13d86ff51124538706f6 | 33bd9c8a0d107f6cdc3343953ae9f7c9bd9272cd | refs/heads/main | 2023-02-24T04:44:07.744715 | 2021-02-01T12:29:38 | 2021-02-01T12:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,226 | py | get_settings.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of CbM (https://github.com/ec-jrc/cbm).
# Author : Konstantinos Anastasakis
# Credits : GTCAP Team
# Copyright : 2021 European Commission, Joint Research Centre
# License : 3-Clause BSD
from ipywidgets import (Text, VBox, HBox, Label, Password... |
83ce5ee4d2a18caeb364b74c3739015fc0e1474c | 6aa6d2cfad2025a801263372acfbb9adebc53016 | /CONTROLE/scripts/readtag.py | 35a7b1973ad6d894cf622853fbe73feeebb22331 | [] | no_license | JoelsonMiller/roseli | d5440212d3d6986e5fb7f3c2a3fc97bee98d8367 | b5de7a3b81f0c9a9bfe691fc0a405b5a8934472d | refs/heads/master | 2020-04-17T09:48:12.202834 | 2019-10-24T13:52:38 | 2019-10-24T13:52:38 | 166,474,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | readtag.py | #!/usr/bin/env python
import rospy
import numpy as np
from sensor_msgs.msg import Image
import cv2, cv_bridge
from geometry_msgs.msg import Twist, Pose2D
from std_msgs.msg import String
import pytesseract as ocr
from PIL import Image as imagePil
import os
import time
from roseli.srv import CreateMap, CreateMapRequest
... |
0b2fd671b99b7012a14b132db2322318873b826c | 25528e883555313b1a8488f3cd1f3a40bd057a22 | /COMPUTER-SCIENCE/BLOCO_39/39_3/conteudo/exercicio1.py | 2bc51c1ba7ca6ee425b4e24564e965e0a75be915 | [] | no_license | vanderson-henrique/trybe-exercises | 30271fa6f24dee1f3b057db38f8f45bf75ab84df | d438d55844af63f249551641069a6b7210177f71 | refs/heads/master | 2023-06-10T18:17:06.060097 | 2021-06-25T14:22:05 | 2021-06-25T14:22:05 | 288,288,362 | 3 | 0 | null | 2020-11-05T22:46:58 | 2020-08-17T21:18:15 | JavaScript | UTF-8 | Python | false | false | 641 | py | exercicio1.py | '''
Exercício 1: Estenda a classe Stack , que escrevemos durante as explicações do
conteúdo, adicionando uma nova função chamada min_value() que irá retornar o
menor valor inteiro presente na pilha.
'''
from stack import Stack
class Other_Operations_Stack(Stack):
def min_value(self):
min_value = self.pee... |
68c2fd1d8ca9e1dd9373ca9f641c2920c87b2392 | 673f0009cddd3cf9d9ba55362d45acf2aa2e4e44 | /intcode.py | 657e73062406446833c1725c244542dedb2e0937 | [] | no_license | yaochie/AdventOfCode2019 | 05c84ede1e35645a68a41057706ae2003e288a28 | ad728f07a375428233a83f20abb3c0fb3148263b | refs/heads/master | 2020-11-26T13:41:12.415552 | 2019-12-26T02:58:06 | 2019-12-26T02:58:06 | 229,089,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,486 | py | intcode.py | # helper functions to handle intcode
from collections import defaultdict
def read_code(string):
"""
string should be a comma-separated string.
"""
code = defaultdict(int)
for i, x in enumerate(string.split(',')):
code[i] = int(x)
return code
def to_ascii(line):
"""
Writes a ... |
b7ebee3c96fd9cd3d8ddc69838363925085a944d | 6d866823016ab875baf005fcadbb70be6af76323 | /List_1/rotate_left3.py | 2a0864f62b303ae8f7136b1681483c35596a910b | [
"Apache-2.0"
] | permissive | zerohk/codingbat_py | af79f9594288a05f6ab3431790a5a21bf9205f66 | 0a83fcd5f0e2edb5b66402bbd29e08be95abaf18 | refs/heads/master | 2020-06-14T03:53:26.884519 | 2019-07-08T01:11:19 | 2019-07-08T01:11:19 | 194,889,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | rotate_left3.py | '''
Given an array of ints length 3, return an array with the elements "rotated
left" so {1, 2, 3} yields {2, 3, 1}.
rotate_left3([1, 2, 3]) → [2, 3, 1]
rotate_left3([5, 11, 9]) → [11, 9, 5]
rotate_left3([7, 0, 0]) → [0, 0, 7]
'''
#卡了很久,还是列表的基本操作不太熟
#参考:https://zhidao.baidu.com/question/1244520812319200859.html
def r... |
51ef1c0f6a17e12b2324a80f962b2ce47cc05bcc | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/83cd3fd279037c242017cd0ab8c825f30c375564-<_get_single_variable>-fix.py | 351daaf125e0b4b61b2478158536c9a042f8ff9e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,382 | py | 83cd3fd279037c242017cd0ab8c825f30c375564-<_get_single_variable>-fix.py | def _get_single_variable(self, name, shape=None, dtype=dtypes.float32, initializer=None, regularizer=None, partition_info=None, reuse=None, trainable=True, collections=None, caching_device=None, validate_shape=True, use_resource=None):
'Get or create a single Variable (e.g. a shard or entire variable).\n\n See t... |
26a778f16cc50d1a8791fb672fb8907464865f3f | e5ef40effc1fbbf228081cf82cd6a0caefd1eb57 | /38.Count and Say.py | 20b31a3882afb92d3a27b1a58f24daaf969f5423 | [] | no_license | withstars/LeetCode-Algorithms | 99d4ad8ec775caaba30be922b4507295c9cc0339 | 21d35cc1b301d6d99ed89e81451ccb7a6411bdc9 | refs/heads/master | 2021-01-24T20:26:23.257526 | 2018-05-20T15:28:09 | 2018-05-20T15:28:09 | 123,253,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | 38.Count and Say.py | n = 5
a = '1'
if n == 1:
print(a)
else:
for i in range(2, n + 1):
if i == 2:
a = '11'
else:
count = 1
for j in range(len(a) - 1):
if j == len(a) - 2 :
if a[j] == a[j + 1]:
count += 1
... |
31b88ba668673e7b87b8f270758adc40232a34d6 | 496112ba57464fa7bfd9f1d39f18205272cd0c42 | /Pandas20210525.py | 579aeac36f5431a7ce88465fcdf5870bc0ca8b8a | [] | no_license | egyptai/Pandas | 75f2ec53c8a68bae300e06a5a74bec4211287320 | 0772f046cd810f635cd25d5b6fc45345997ff0fd | refs/heads/main | 2023-04-28T10:13:14.636113 | 2021-05-26T00:07:37 | 2021-05-26T00:07:37 | 370,858,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | Pandas20210525.py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import pandas as pd
dict_data = {'a':1, 'b':2, 'c':3}
sr = pd.Series(dict_data)
print(type(sr))
print('\n')
print(sr) |
867a8247d2128b5e7181447b3d1b38b3f9da03f9 | c3327a695b1ea524715b5129ea5950eb3d608350 | /check_urls.py | 8f75964ab52150b44069616e58f3b079ab3dee76 | [] | no_license | MetOffice/localTables-GRIB-BUFR | 7785d854bb2a6f206f3c7cd7b1f9641908b7895f | d3edb863286bb376797d55110f2fd1d292b3d154 | refs/heads/master | 2023-08-14T19:22:23.753861 | 2023-08-03T08:20:22 | 2023-08-03T08:20:22 | 241,917,729 | 1 | 7 | null | 2023-08-03T08:20:24 | 2020-02-20T15:22:30 | Python | UTF-8 | Python | false | false | 7,798 | py | check_urls.py | import copy
import glob
import json
import os
import unittest
import rdflib
import rdflib.compare
import requests
import grib.grib2.makeG2Entities as makeG2
import grib.grib2.makeReleases as makeRels
"""
This test script evaluates all folder which contain a file of name
'regurl'
that contains a single URL for a regi... |
899ca3ad25c030018a600e2823cae4abbd5db69e | 8c77dcc0fd3e497194e572c8641200f08b32dc97 | /stdlib/mock_qs.py | c34d42b36afd013d4b79725c8dd2ab45b78683a1 | [
"MIT"
] | permissive | bpuderer/python-snippets | 633a1e382f7c9812621d61ec16a15e106d1d5fc8 | 3277b76b03f3ceb11e4571be4cecae68051aac45 | refs/heads/master | 2021-12-27T09:19:27.212312 | 2021-12-22T13:08:56 | 2021-12-22T13:08:56 | 46,539,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | mock_qs.py | # https://pyvideo.org/pycon-us-2011/pycon-2011--testing-with-mock.html
# https://www.youtube.com/watch?v=haXUaGTp8Bc&t=7m55s
import unittest
from unittest.mock import Mock, MagicMock, call, patch, ANY, mock_open
from work import work_on, Helper, Worker
def print_mock_data_descriptors(mock):
print(f'call_args: {... |
a9dcfb81cd5c7a7ecefdb807fc08c8bedc3ba23b | d160bb839227b14bb25e6b1b70c8dffb8d270274 | /MCMS/Main/Scripts/AlertUtils.py | 55cae55d475ec1e882105fd8a233e87e46919367 | [] | no_license | somesh-ballia/mcms | 62a58baffee123a2af427b21fa7979beb1e39dd3 | 41aaa87d5f3b38bc186749861140fef464ddadd4 | refs/heads/master | 2020-12-02T22:04:46.442309 | 2017-07-03T06:02:21 | 2017-07-03T06:02:21 | 96,075,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | AlertUtils.py | #!/mcms/python/bin/python
import os
from McmsConnection import *
from UsersUtils import *
class AlertUtils(McmsConnection):
#---------------------------------------------------------------------------
# Public functions
#---------------------------------------------------------------------------
def Add... |
0150f5d2ff28347a764412778175cabb1d0df4c3 | 672ea11a7dee763fc8c37bc82bb609b8de19344c | /src/系统工具集psutil.py | fce29557c712ba51dc22157c6cf6e6e1ddcaf7d1 | [] | no_license | qlong8807/python3-lesson | 294ede6a0de1d89f513209b00504e8f0c9bb2607 | ac4e745a8e8d0ab665e2ff676ddcd0ab190fed06 | refs/heads/master | 2020-04-08T15:18:44.564272 | 2020-02-18T08:33:30 | 2020-02-18T08:33:30 | 159,472,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | 系统工具集psutil.py | #!/usr/bin/env python3
# _*_ coding:utf-8 _*_
'当前文档注释'
__author__ = 'Jans'
import psutil
psutil.cpu_count()# CPU逻辑数量
psutil.cpu_count(logical=False) # CPU物理核心
psutil.cpu_times() #统计CPU的用户/系统/空闲时间
psutil.cpu_percent(interval=1, percpu=True) #类似top命令的CPU使用率
psutil.virtual_memory()
psutil.swap_memory()
psutil.disk... |
54f37b4918bf7321a18c5577358981f024844131 | f51f957307dcba4f13061e6c4cc58a6bfe69a8ec | /src/F10.py | c3a731e8ea63ac57f6ba47944a87bf856dc7b7cf | [] | no_license | underdeveloper/tubestertubes | 5dee235902426d9dfa3691a064b9f6ed11a9092b | 2470794f4137f93b9dca508aacff00887dc59602 | refs/heads/master | 2022-04-24T23:43:15.217301 | 2020-04-26T19:32:02 | 2020-04-26T19:32:02 | 252,914,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | F10.py | #Program F10
#Program menerima kritik dan saran
#Menambah entry data ke kritiksaran.csv
#KAMUS
#ALGORITMA PROGRAM UTAMA
import F01 as load
import auxilliary as aux
#REALISASI FUNGSI/PROSEDUR
def main(pengguna) :
# FUNCTION main (input/output userfile : array of array [0..3] of string)
# I.S. kritiksaran suda... |
507e1e22257ddee08bc72f2880bcbfdd4a8fd43f | 80a2a658ed2383ce0b8fcb76d58c87e380675c03 | /Server/server.py | ad6dae25c37b447e3e8238b2b8f2e5596cd2a1d8 | [] | no_license | vaginessa/WinRemote-1 | 89de5232b7773fb3140051383a1bcab44d7cf7a8 | ebaf9f56285db69ba7f6c1512a711cfe708ab50d | refs/heads/master | 2020-04-17T04:47:37.486771 | 2015-06-10T16:46:34 | 2015-06-10T16:46:34 | 166,246,223 | 0 | 0 | null | 2019-01-17T15:14:47 | 2019-01-17T15:14:47 | null | UTF-8 | Python | false | false | 2,141 | py | server.py | import socket
from threading import Thread
from Tkinter import Tk, Label, Entry, Button
from PIL import ImageTk
import qrcode
class Server:
def __init__(self):
self.HOST = socket.gethostbyname(socket.gethostname())
self.PORT = 8000
self.conn, self.addr = None, None
self.qrImage = N... |
317aa9cd0bd2d7d9a4354d1ac7d31716fbe64629 | 5279b3fd3b0cba9e1ca5552229bf6d32c3c0bb44 | /ch07_CNN/ex07_Convolution_3D.py | 4f0b9abade65a0e0ab5adee3d5ced270ab703330 | [] | no_license | handaeho/lab_dl | 16afe29b1b6db005cdae8ef9cc1f5f675ea34cf8 | 99ddcadec0c93bd42113f6b5fbecd9171c030f8b | refs/heads/master | 2020-11-30T08:42:39.506059 | 2020-02-11T05:22:32 | 2020-02-11T05:22:32 | 230,358,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | ex07_Convolution_3D.py | """
3차원 Convolution 연산
3차원 Convolution 연산에서의 input x는 3차원이므로 필터 w 역시도 3차원이어야 한다.
3차원 데이터는 특징 맵에서 '가로', '세로'에 추가로 '길이'를 갖게 된다.
주의할 점은 '입력 데이터의 채널 수'와 '필터의 채널 수'가 같아야 한다.
필터의 크기는 원하는 값으로 설정이 가능하지만, 모든 채널의 필터는 같은 크기여야 한다.
3차원 Convolution 연산은 데이터와 필터를 '직육면체 블록'으로 생각하면 쉽다.
입력 데이터(C, H, W), 필터(C, FH, FW)
C: channel / H:... |
77fde44560fc51f0b4aa168aa23241669d700ae1 | 67dd020004ce8b307e8c9beb7e41a6031c24be61 | /models/status_store.py | 966d73912409e29114899f938b1a623b850a0c52 | [] | no_license | bausk/pytweet | eee07bca4d05b8f6312791f8b6b886114d990067 | 32455d43b721f101a483c0505d8faef69bf15655 | refs/heads/master | 2022-07-09T03:46:50.855214 | 2019-06-25T21:22:33 | 2019-06-25T21:22:33 | 118,381,699 | 2 | 0 | null | 2019-11-01T16:14:39 | 2018-01-21T23:04:07 | Python | UTF-8 | Python | false | false | 1,384 | py | status_store.py | from persistence.postgre import BaseSQLStore
from constants.formats import status_records
from datetime import datetime
class StatusStore(BaseSQLStore):
def __init__(self, name):
super().__init__(name, format=status_records)
def get_value(self, name):
connection = self._ensure_connection(ens... |
edaec06f77ba608e0ed93687faca71a9c058b22d | 3cb1d6bc5af38a2e7045cfe273ce8b20559afd19 | /SciStreams/core/scistreams.py | a6129b2707a88e04c384cc114e92bdf1cb65a094 | [] | no_license | CFN-softbio/SciStreams | 8bb0bfa31462ea2abb9807ed33603932f21b3b83 | ab53afdb1cf0a42db79cbbb8e6190b4b2066c28a | refs/heads/master | 2021-09-14T05:35:53.275665 | 2018-03-13T16:15:17 | 2018-03-13T16:15:17 | 92,520,107 | 0 | 4 | null | 2017-10-27T21:23:44 | 2017-05-26T14:43:41 | Python | UTF-8 | Python | false | false | 3,152 | py | scistreams.py | from functools import wraps
import streamz
from SciStreams.core.StreamDoc import psdm, psda
import SciStreams.core.StreamDoc as StreamDoc_core
from SciStreams.config import client
def future_wrapper(f):
@wraps(f)
def f_new(*args, **kwargs):
return client.submit(f, *args, **kwargs)
return f_new
... |
538ad9f1c14587f458d2cc063ac603ec0f8da9a9 | f04c6ae4ed4dbb78fb217d90b9d2abecf0ac6435 | /squeue/__init__.py | afeec9e82fe40c9c1e5e25736213714b69dbc1dd | [
"MIT"
] | permissive | jefftaglic/Hubris | fa745bb674544c3d5a9292e9bc381d0d42ff9747 | 0f57fb72afbfbed22699628af63fa324c29ed3d2 | refs/heads/master | 2020-04-17T17:03:36.902650 | 2018-04-17T19:59:29 | 2018-04-17T19:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | __init__.py | from flask import Blueprint
squeue_blueprint = Blueprint('squeue_blueprint', __name__, template_folder='templates')
from squeue import routes
|
5984441293e20b3ca2fd7a9baf9731962069780f | 310125aaccaf530cd31e63c9625bca5ba36860a3 | /Programming_Assignments/4/HW4.py | 2d57de2360d126b181041cacd8b8fb4e2a66a772 | [] | no_license | DThroop123/COSC3100-Projects | 79d45ab6f3b6a057e2af53d8a023c9001a417280 | 4bbd14d23a721818bb92cd13cfe794c5a4ff4a9c | refs/heads/main | 2023-04-15T22:30:06.922539 | 2021-04-11T21:47:15 | 2021-04-11T21:47:15 | 333,963,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | HW4.py | """
HW4.py - Developing a algorithm to find the largest subsequence of a given list
Date - 02/24/21
Author - Daniel Throop
Class - COSC 3100
"""
listy = [10,-20,3,4,5,-1,-1,12,-3,1]
def subSum(lista):
# base case (list is of length one)
if len(lista):
# would we not wanna return here?
pass
else:
# divide ... |
3e45700e8f6da1325fb2ba01548cd1b12e2c846b | 8fb5e4706f8685ea1796e049d6dc49798a5df8f8 | /LinkedLists/ll.py | 9a760c220a789d7ffd5948305e02571282ed12a6 | [] | no_license | abhishekthukaram/Course-python | 0ca8d529fbb41f805b2c5a14df5ab153427a4246 | 32111a0cb65309e1ab9185e0adbb3d4c2a713b50 | refs/heads/master | 2022-12-27T02:09:35.433315 | 2020-10-07T07:27:21 | 2020-10-07T07:27:21 | 269,257,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,846 | py | ll.py | class Node:
def __init__(self , data):
self.data = data
self.next = None
class Linkedlist:
def __init__(self):
self.head = None
def printlist(self):
current_node = self.head
while current_node:
print (current_node.data)
current_node = curren... |
d2777ab3672c7d05c1eb4300b819f57faf81ea92 | 3fa7a65d30e8dd095e51444da43e484c4b7a2d5c | /xmfsp20/test_case/test_loanManagement.py | 836a4c225c863cd747f91dcf00cba376e91560e7 | [] | no_license | Xiakk/test1 | 1efe59cd1f4a3f64ec848e4fe1cd49090207d2e7 | 41a7c566cfa8d272e5cc999c3ecb7b7ed4f0b7d9 | refs/heads/master | 2020-06-27T15:05:47.968048 | 2019-08-17T02:09:10 | 2019-08-17T02:09:10 | 199,983,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | test_loanManagement.py | #coding=utf-8
import json ,unittest ,requests
from common import readConfig
import random
localReadConfig = readConfig.ReadConfig()
class test_loanManagerment(unittest.TestCase):
def setUp(self):
self.http_url = localReadConfig.get_http('url')
self.port = localReadConfig.get_port('loan_port')
... |
6a13af4427eddb3d460035dd025ebaa237faa78d | 419026d49218d0e9c48a446a7cf586be697f08b6 | /api/forms.py | a9f40c437192801b22becc5a1b9828c84e5e71d0 | [] | no_license | misteraverin/stepiktask | b2f237ef84ee406cdabd98102dfc5d623ea495d4 | 06ca00e901c53069f1bb3036cf6c8fd86615efa8 | refs/heads/master | 2020-12-30T13:46:59.616688 | 2017-05-08T18:48:38 | 2017-05-08T18:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | forms.py | from django import forms
class StepsForm(forms.Form):
"""Validates API requests to /api/steps/<step_type>"""
lesson = forms.IntegerField(required=True, min_value=0)
|
ec97d15c6382207f30236e1371ac6a3028371f66 | 59f0dd5af5da1825b27a7cd2f04b5c1c483d37cb | /src/MunkresTest.py | 289bc11924c60856b7f486c4726505ef0778e881 | [
"MIT"
] | permissive | lilin19890401/FairMOT | f1fe5945e69547214fd7f2c5ceec35ab16afcf94 | 6610c5ab9a7316c48666093806d7cd76e924cc58 | refs/heads/master | 2023-06-21T17:42:20.209315 | 2021-08-04T11:48:09 | 2021-08-04T11:48:09 | 315,686,716 | 0 | 0 | MIT | 2020-11-24T16:15:31 | 2020-11-24T16:15:30 | null | UTF-8 | Python | false | false | 770 | py | MunkresTest.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/11/25 19:54
# @Author : LiLin
# @File : MunkresTest.py
# @Software : PyCharm
# @Description :
import numpy as np
#from sklearn.utils.linear_assignment_ import linear_assignment 使用这个要降低版本 降低scikit-learn版本使用<=0.19
from scipy.optimiz... |
bd78d728cceb22d2daf769d2680c2ca0ea6ecda1 | af93b3909f86ab2d310a8fa81c9357d87fdd8a64 | /begginer/6. cas/domaci 6 cas.py | d8e9d3854e9f0d5a4b87986590afdfcf1575909d | [] | no_license | BiljanaPavlovic/pajton-kurs | 8cf15d443c9cca38f627e44d764106ef0cc5cd98 | 93092e6e945b33116ca65796570462edccfcbcb0 | refs/heads/master | 2021-05-24T14:09:57.536994 | 2020-08-02T15:00:12 | 2020-08-02T15:00:12 | 253,597,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | domaci 6 cas.py | x=4
while x<=99:
if(x%4==0):
print("Broj je deljiv sa 4:",x)
elif(x%3==0):
print("Broj je deljiv sa 3:",x)
elif(x%5==0):
x+=1
print("Broj je deljiv sa 5:",x)
else:
print("Broj ne ispunjava uslove.")
x+=1
|
bc3545b9df8a655ef1941ffe3e529e8c2c4b9fb0 | 06f8512cd9718037b3dae92ace0af75924df45a8 | /bio-stronghold/impl/SSEQ.py | 4ad296c67b9d4ec8d8dac404328bb5e0c86eab50 | [] | no_license | red-cheese/rosalind-solutions | bbb1e969bac8093d6759bdf30d1690a4b4ed956a | 345c56ca97339a2182e554ebc0220e748ffcfe35 | refs/heads/master | 2021-08-08T19:07:48.008713 | 2017-11-10T23:31:27 | 2017-11-10T23:31:27 | 106,395,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | SSEQ.py | import solution
import utils
class SSEQ(solution.Solution):
def _read(self, f):
s, t = utils.read_fasta(f, dna_only=True)
return s, t
def solve(self, data):
s, t = data
if not t or not s or len(t) > len(s):
raise ValueError
res = []
i = 0
... |
9bc3c85a1dfe641b6bf726671d0db6a665002168 | bed5bc17c2ae6914d3c0f797b399cf3e581567fe | /shopping/shop_app/admin.py | 2d41c5841c09115debfe17aa6fd7f892fa503592 | [] | no_license | the-vampiire/medi_assessment | 5eb12ad38b2dd24ac64371f7c50fcdd241fbbdeb | 6a316c4c13ac36e3981487b2846ee802183f7761 | refs/heads/master | 2021-04-15T03:55:57.900107 | 2018-04-02T04:59:36 | 2018-04-02T04:59:36 | 126,254,426 | 2 | 2 | null | 2018-03-26T09:44:10 | 2018-03-21T23:52:11 | Python | UTF-8 | Python | false | false | 169 | py | admin.py | from django.contrib import admin
from .models import Category, Product, Customer, Address, Receipt
admin.site.register([Category, Product, Customer, Address, Receipt])
|
46ab3b865ca0e15d0cd5017440f0527760d75153 | 35cd664bebffb15a08f073fbe542342878c21fad | /Implementation/Closed-form formula/closedFormFormula.py | c9bff36c8c84431151cfaadbe885544877fc1a21 | [] | no_license | paracats/Python-For-Finance | 43014498aa3d6e000527b9f2c0062c75b54c5abf | aae2c546368f24c4919bba88b9c60dcef61ad5fa | refs/heads/master | 2023-03-20T05:00:10.228867 | 2017-04-28T12:01:24 | 2017-04-28T12:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | closedFormFormula.py | import numpy as np
import scipy.stats as scs
def europeanCall(St, K, h, r, sigma):
d2 = (np.log(St / K) + (r - sigma ** 2 / 2) * h) / (sigma * h ** 0.5)
d1 = d2 + sigma * h ** 0.5
N1 = scs.norm.cdf(d1)
N2 = scs.norm.cdf(d2)
return St * N1 - K * np.exp(-r * h) * N2
def testCall():
for i in rang... |
b9403ebc10eef28ee74de8bb486a7596fb509d16 | 20909c9122262d819c922d230a454362d9944f6f | /pipeline_02_geocode_addresses.py | f683a2e18e4b78d5d445cf0ab50d97b5948cb802 | [] | no_license | musa-509-fall-2021/lab-05-pipelines-and-cloud-services | 2e4a977bb78d7142f98a6307f948c45ed7164b54 | fbec68140b97c4db275de94b407af58b67ee279a | refs/heads/main | 2023-08-24T18:19:29.058636 | 2021-10-21T01:07:14 | 2021-10-21T01:07:14 | 419,423,885 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | pipeline_02_geocode_addresses.py | """
Extract Process #2
Use the Census Geocoding API to geocode the addresses in the file that was
extracted in step one. The documentation for the API is available at:
https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf
I encourage you to read it for details, but the gist is:
- You can geocode a bat... |
46f1c432f449529afcb2ae79383b0208d31ae22f | a6526df3ca3cab3f4adb97e7c8d102f2ab752b02 | /查找数组元素.py | 6cd28fc4a51529c802e7eb615c8dec22205077f3 | [] | no_license | Aliensixteen/py | 690b7a7de66ac447ae9eecb58413db1533d52380 | 474150848701c0a8f247d8208c64d8d56ee70792 | refs/heads/master | 2021-07-07T23:42:10.127761 | 2020-12-07T02:58:04 | 2020-12-07T02:58:04 | 215,729,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | 查找数组元素.py | n = int(input())
n1 = [int(i) for i in input().split()]
x = int(input())
a = int(-1)
x1 = int(0)
for i1 in n1:
a += 1
if i1 == x:
n1.pop(a)
x1 += 1
break
if x1 == 0:
print('Not Found')
else:
for j in n1:
print('%4d'%j,end='')
|
537de0f07c6a7f107e664c6fc56f531954fc128d | 60faa0d2faff05885f2a32a996bef0be64892d51 | /Feladat4.py | 97c238fc330d898a5de48294806c4516d97e092e | [] | no_license | EitGotti/Beadando | 4a5700ba419e56719d947cfec8942f5057b284bb | 77b66ce6434b956e7521db4514d398a773d07c7a | refs/heads/main | 2023-04-23T00:42:15.511039 | 2021-05-09T18:37:30 | 2021-05-09T18:37:30 | 365,822,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | Feladat4.py | x=input("kérem a számot: ")
összeg=0
for i in str(x):
összeg += int(i)
print(összeg)
|
50705d79fb06ba3b98046b45402e414effdf8c0c | 9c0e2bd9ecab24c7e3561a0986b42bdd901f2d77 | /Email Sender/Emailsende/views.py | 13d5cd2b3f5404be1c88d3130f2d600cab2941a0 | [] | no_license | Jatin7385/Django-EmailSender | d0819fa6344ccee258ccf7316bddd26545660d5b | fe689bf934c28f2a979d0534e434c0777f47637d | refs/heads/master | 2023-03-08T00:38:35.464738 | 2021-02-21T18:34:19 | 2021-02-21T18:34:19 | 340,974,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | views.py | from django.shortcuts import render
from django.core.mail import send_mail
# Create your views here.
def sendemail(request):
return render(request,'sendemail.html')
def sendmail(request):
message_email = request.POST['email']
message = request.POST['content']
Subject = request.POST['subject']
send_... |
76cf8131f4f98cd4271ade31d87353cbf7b96ad9 | c4190cd225241875976d7fe5c50f9a6416aa52c8 | /model.py | 0dedbf1e9efd579e2b77f6cf436cccce65669d00 | [] | no_license | wurongxin1987/vulcheck-javaprojects | d8df648b6dc9bc01818e327f138d0ebc853bb424 | 5ea5b0542643bcf2c59e0799809c391c420d0c9c | refs/heads/master | 2022-08-25T16:13:23.235348 | 2020-05-28T05:14:46 | 2020-05-28T05:14:46 | 267,737,277 | 0 | 0 | null | 2020-05-29T01:33:24 | 2020-05-29T01:33:23 | null | UTF-8 | Python | false | false | 3,146 | py | model.py | import time
class AccessToken(object):
def __init__(self, value, limit):
self.value = value
self.limit = limit # per min
self.remaining = limit
self.reset_time = -1
def is_available(self):
return False if self.remaining == 0 else True
def reduce(self... |
114dea3bd8c4c1994c093af67b6177bdd163ace5 | b5304eb57ad4384d5056c567567e35a8bde71200 | /mose/__init__.py | 45e5ad63c18ce19de9ae40290667723ce7422182 | [] | no_license | chan-y-park/mose | 9f7285859dd310cbdeb81d1776c11e28afa6fe0e | df78af69e0fd2213c98192a1fea93849972e7152 | refs/heads/master | 2021-01-10T20:25:30.630222 | 2017-04-07T02:40:07 | 2017-04-07T02:40:07 | 23,087,860 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | __init__.py | import pdb
import os, platform
import time
import matplotlib
if matplotlib.rcParams['backend'] == 'nbAgg':
print('Use IPython notebook backend for matplotlib.')
elif platform.system() == 'Linux':
try:
os.environ['DISPLAY']
matplotlib.use('TkAgg')
print('Use TkAgg backend for matplotlib.'... |
e83452584cc0f18d890bf6e5dfe715c29dbdb05d | 52705256ed578855ff9e47f0ea3a43563745ed1a | /final_lab24221.py | 02bfef93bb8864249bddb62557fdfec39736dc4a | [] | no_license | sofia-bobbiesi/Lab_AnNum2020 | f2045ee842a6204d8776ecbeba925d16ba493979 | 9a388ee5b5260980714bce9c71f7b9dd0762ac42 | refs/heads/master | 2023-04-03T05:35:00.491307 | 2021-03-10T17:48:38 | 2021-03-10T17:48:38 | 273,605,889 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | final_lab24221.py | import numpy as np
import scipy.integrate as integrate
from math import pi,sqrt,e
from matplotlib import pyplot
# Ejercicio 1
fun = lambda t: (2/sqrt(pi))*(e**(-t**2))
def simpson(fun,a,b,N):
if N%2 != 0:
N+=1
h = (b-a)/N
xi0 = fun(a) + fun(b)
xi1 = 0 #Suma de f(x2i-1)
xi2 = 0 #Suma de f(x... |
72a177e17d5b4a797de2d6c8a20dd165ec31e1ab | 0c43e9ad031e6e6c7c21c0135f19c46bb3308d0c | /Live/SelectedDBConfigStationary.py | ab1eaa79cb92fb224a2eca0c3406b3a73a47c2aa | [] | no_license | webclinic017/FeatureAlgorithm | fe45f159726d0cf540427f2e4896730b589c4af0 | 2168ce05922e7fb8a949ed56a332df78205c7de1 | refs/heads/master | 2022-03-24T01:30:24.659495 | 2019-03-29T11:57:30 | 2019-03-29T11:57:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,661 | py | SelectedDBConfigStationary.py | # ================ DB config ============================
import os
import sys
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
from Utils.DB_config import ConfigQua... |
1b8b7619d787438213559cddcc7ea99d51ddffbd | e3748c5d4448c6e0e7db87b8dfd8a3d26c639e69 | /temp_model.py | 859d9354fd50e830d6ca0bc9201ae544d166d6d6 | [] | no_license | Sleeping-Suit/movielist | 1b2974d179a631b450a87556fa6b290ed887443a | 4de4b40645301034530d817d03265bef5a0c5e24 | refs/heads/master | 2023-08-18T19:07:29.937071 | 2021-09-14T09:01:51 | 2021-09-14T09:01:51 | 406,249,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | temp_model.py | # class TempModel:
# def __init__(self, todaytemp):
# self.todaytemp = todaytemp |
7d196fac7932bdb3dc9d70d6c12cdf8b1e0a013f | 519b28d3c16e3d9e43f1f4e65b3bad7781ae6031 | /framework/abstract_env.py | 1e7ab075370f4cf17e6a767ce0f7c7ac8c8e5f47 | [] | no_license | DaeHoonKang/rl | dc312cc28bf49ae19ce0d1220ea43127ee59f8d7 | d58d1a71ae9db1aae262cc31b3ed95ba0ef7fcc5 | refs/heads/master | 2020-05-04T20:47:28.488475 | 2019-04-17T01:55:45 | 2019-04-17T01:55:45 | 179,438,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | abstract_env.py | # -*- coding: utf-8 -*-
from abc import *
class AbstractEnv(ABC):
@abstractmethod
def version(self):
raise NotImplementedError
@abstractmethod
def reset(self, players):
raise NotImplementedError
@abstractmethod
def step(self):
raise NotImplementedErro... |
654aef74353940e860fee91086b7329b701ee060 | 5e38afd261fbe589faa572bff7db55f11f410474 | /msa_plugin/msa.py | 7b689bf9316c049e7bc431e5c5d76e2cbb59c345 | [] | no_license | extroid/leadmanager | e1208b86d8ca67b7895c31cf57c2e1c4d9a5bde3 | 746023e03908b711868608ec81867a4bd6ca08c6 | refs/heads/master | 2016-09-05T16:19:19.484553 | 2011-02-10T22:19:11 | 2011-02-10T22:19:11 | 1,320,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236,097 | py | msa.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Tue Jan 25 01:07:59 2011 by generateDS.py version 2.3b.
#
import sys
import getopt
import re as re_
etree_ = None
Verbose_import_ = False
( XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_elementtree
) = range(3)
XMLParser_import_l... |
ea1af9917b6a8a33aa6f28ad9427e65c006255ec | 6168cb5fdda3351fb062f702b812667ab0a058b0 | /splash_screen.py | a596dd63490cf0840ffe3075619834d05d9e928a | [] | no_license | duyminh-bostrap/Face-recognition | fa451680d852016d1a14503679b19485c5d16648 | d6a3ea387f1a26927c3ece473a6cb570312a3927 | refs/heads/main | 2023-02-08T14:44:28.077866 | 2021-01-05T05:10:52 | 2021-01-05T05:10:52 | 326,891,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | splash_screen.py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'splash_screenauOLkU.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
######... |
acd8f3056d8236a11d287489b02fd3192c2c30ad | a3e26112cb5d6b64c30b44f775750653a1daf0dc | /Q1567_Maximum-Length-of-Subarray-With-Positive-Product.py | 09f2e7e7142718760d3e83c4a1c0b2f72e88119f | [
"MIT"
] | permissive | xiaosean/leetcode_python | 938f1df379b518d99a778e2da8093ff0371e35d4 | d6fc52d13946895d2b2928ef9962af0610b1d1e8 | refs/heads/master | 2023-04-05T07:07:01.561010 | 2023-03-25T19:17:21 | 2023-03-25T19:17:21 | 150,637,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | Q1567_Maximum-Length-of-Subarray-With-Positive-Product.py | class Solution:
def getMaxLen(self, nums: List[int]) -> int:
ans = pos = neg = 0
for num in nums:
if num > 0:
pos, neg = pos+1, neg+1 if neg else 0
elif num < 0:
pos, neg = 1+neg if neg else 0, 1+pos
else:
pos = neg ... |
735f6040d50d7eeace680cccd9bd805263151e55 | 6a454072f36e4b5942a9a51250059f88e98adaed | /umt/umt_run.py | 49c394eef59db8f56fefe1447b9638b26ac063bf | [] | no_license | Back-Pack-Jack/rpi-urban-mobility-tracker | 22e5342267ee120f7cfff5487d2faaa0114adde7 | 2205eb3d9cc93668fb54c948f9641555ae556921 | refs/heads/master | 2023-06-08T17:49:45.295133 | 2021-02-01T13:35:54 | 2021-02-01T13:35:54 | 321,943,825 | 0 | 0 | null | 2021-02-05T14:42:06 | 2020-12-16T10:15:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,348 | py | umt_run.py | import multiprocessing
import subprocess
import logging
import signal
from sys import platform
from umt_init import UMTinit
logging.basicConfig(level=logging.WARNING) # Global logging configuration
logger = logging.getLogger("umt - run") # Logger for this module
logger.setLevel(logging.INFO) # Debugging for this fil... |
a4c893aea9d2dd4fe2662e5f5d11bd88abe3a0df | 6be95ed3fa18bd2d4068e1b9f75fecbf9fece707 | /raterprojectapi/models/rating.py | cf3b1f9ec19481244f4f7305203527fd61ce8524 | [] | no_license | daprieu/raterproject-Server | f630ecfb27ba7d1e824c7c70ba4d129392651cc6 | 61ba5c823068277bd161adbfae38d0aa4cc6e542 | refs/heads/main | 2023-04-26T16:40:55.024352 | 2021-05-14T19:23:19 | 2021-05-14T19:23:19 | 364,057,069 | 0 | 0 | null | 2021-05-14T19:23:20 | 2021-05-03T20:47:28 | Python | UTF-8 | Python | false | false | 100 | py | rating.py | from django.db import models
class Rating(models.Model):
rating = models.IntegerField()
|
2fffa2fba12bb368a655a747172fe4ac807a2ce6 | a22a21d87676352a7c7388a0b83125b1b73c0288 | /app/graphql/schemas.py | 580844b83bbd17c669bc86f016f528ac951c7770 | [] | no_license | catdoch/flask-graphql-project | 1a20efc70dcafbf78bdb4610d62b1215e77d37db | 9be731e9e5213ef115fad215d50161a752c09e97 | refs/heads/master | 2022-12-11T18:38:36.633287 | 2019-08-01T16:19:05 | 2019-08-01T16:19:05 | 195,426,792 | 1 | 1 | null | 2022-12-10T21:58:23 | 2019-07-05T14:54:48 | Python | UTF-8 | Python | false | false | 1,774 | py | schemas.py | import graphene
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
from app import app, db
from app.models import Post, User, Category
class PostObject(SQLAlchemyObjectType):
class Meta:
model = Post
class PostConnection(graphene.relay.Connection):
class Meta:
nod... |
e8790faa3c264c0cce2431666747ae9ccbf6bb93 | 8fcbb54cbec9d831285814390e862e0f755ee4c2 | /Cloud/Defective_detection/defective_detection.py | acd0442d0d7ae37cafb31ddb7fce91b84dff040f | [] | no_license | watarium/industry4 | f18fecd09bb21aed8474b4e00ebe4094f36593d8 | d6dd566cac916b393fc204e4f62518ccf4bdefc7 | refs/heads/master | 2021-03-06T05:03:16.743923 | 2020-04-26T17:22:09 | 2020-04-26T17:22:09 | 246,180,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | defective_detection.py | import os, pickle
import cv2 as cv
import numpy as np
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.optimizers import SGD
from sklearn.model_selection import train_test_split
import matplotlib.pyplo... |
23ab2756b4f170dfb70dbcf16d6c65afbac75824 | 60e05be12585ca5f43a95dd46fa64924e2a1fcee | /challenges/jollyroger/app.py | 43caeb88e8bc43ea5a30ad06f346894d427e03be | [] | no_license | pyrodie18/ACSC-2018 | eee88eb7b3466a93bcf96f3efbf7eb0a94d7659c | 65e4795100305e9be8950cc6ccc44df2c0868944 | refs/heads/master | 2020-06-07T13:25:31.689880 | 2018-12-12T00:39:45 | 2018-12-12T00:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | app.py | #!/usr/bin/env python3
import fcntl
import os
import subprocess
import tempfile
from flask import Flask, render_template, request
from flask_socketio import SocketIO, emit
app = Flask(__name__)
app.config["SECRET_KEY"] = b"f6bd38bacb77fa4dc5f35c963109bbdf0f70454ca935123a"
socketio = SocketIO(app, binary=True)
PROCE... |
1da6055fed50c1536039875f5a7cdb99bf7180cb | de1776c11e306532aa4d7e838aa0651807ab65c2 | /problems/function/evaluator.py | 6226980aba982979e6848e92bf584b5e9851a0eb | [] | no_license | gitbuda/optframe | 40c12acb94618407cd00d6897603f47c35b4c6ac | b2ad4b297f372beaa969b08d0636ddfd3e91d53e | refs/heads/master | 2021-01-23T18:21:55.606525 | 2015-06-23T13:10:26 | 2015-06-23T13:10:26 | 32,553,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | evaluator.py | # -*- coding: utf-8 -*-
'''
Function evaluator.
'''
from itertools import islice
from common.fitness import Fitness, MIN
from common.constants import BIT_BOX_KEY
from math import pi, cos, sin, sqrt, fabs
from common.evaluation_counter import EvaluationCounter
# from common.evaluation_history import EvaluationHistory
... |
f273b316a14e24487404521bc906193a0e145a83 | 960bf0a9ee6ef94a0999a1b5fa9ba4cd14e3a4f8 | /object_detection/tensorflow/detect_object_video.py | 1d69fbf68ffb316ae8a0ee3e6858687c68170948 | [] | no_license | maheboob76/ML | 9609e3e63a3b6611faa56d817b764994c4797da2 | f6a2c8827e8e46b42771c35a7c2a2ec534d4a0a5 | refs/heads/master | 2020-04-10T09:22:42.766300 | 2019-12-15T12:46:07 | 2019-12-15T12:46:07 | 160,934,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,782 | py | detect_object_video.py |
''' This program will detect presence of teddy bear in camera view and alert if teddy is detected or if camera is not working '''
import cv2
import numpy as np
from datetime import datetime
from playsound import playsound
import threading
from _thread import start_new_thread
from time import sleep
# Load a model impo... |
fad10665afc56be99cfc8e82444464e138327b89 | b327bfab61ca7589694017f565d3b0e48841a2a6 | /home5/mainapp/management/commands/fill_db.py | a569c5eaad664423cd08617e97a7babcc78efea4 | [] | no_license | psicho/GeekBrains---Django | 542e10bae480ceb54149ea97f6e34d9702f7f8c3 | 239c756f58010d29ab3afd6d1a64904f4f91da5d | refs/heads/master | 2021-06-17T04:36:50.524112 | 2017-04-25T13:01:56 | 2017-04-25T13:01:56 | 83,029,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | fill_db.py | from django.core.management.base import BaseCommand, CommandError
from mainapp.models import Teach, Work, Hobby
from datetime import date
class Command(BaseCommand):
help = 'Fill DB new data'
def handle(self, *args, **options):
works = [
{'organization': 'ОАО "ПетерСтар', 'region': 'Санкт-... |
6cae3024f2131757278cd61d9b2fd9029fff2204 | 0ab3b82c16a3bc50e7723f637c03582e80915bae | /trunk/luca/test/testReceipt.py | e5611c704e6e9497930b11cfa253fd0ec40b7ac7 | [] | no_license | BackupTheBerlios/luca-erp-svn | aae6c3badc44536cb1f543876aeeab6d9423beb8 | 642ff7f4ac31695e225445389325a26bdeab4ec7 | refs/heads/master | 2020-04-01T20:02:20.523005 | 2005-09-01T13:01:37 | 2005-09-01T13:01:37 | 40,818,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | testReceipt.py | # -*- coding: utf-8 -*-
#
# Copyright 2005 Fundación Via Libre
#
# This file is part of PAPO.
#
# PAPO is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any l... |
5dd02b98b7e652d78476c127606f2bedb7a5b7d6 | ddf76072f1b37aaff207ec2e450f49436e2ed72c | /V3/ClassificationLSTM.py | 94d908daa95e4cb4959bef90f80ee893a41bb1b8 | [] | no_license | YPatschke/MachineLearning | d61138edb2ee3aeaf10f9db5f25de586afd21cfa | 7abba275aaa8ef7a39f7fe9211e63daec7897db9 | refs/heads/master | 2021-09-09T14:43:34.667006 | 2018-03-16T14:18:45 | 2018-03-16T14:18:45 | 107,049,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,072 | py | ClassificationLSTM.py | from __future__ import print_function
import numpy as np
import tensorflow as tf
import loadData as ld
# separate data between train and test - Need input, output, train size (percentage) and if we want to shuffle
def split(X, t, train_size, shuffle):
# get he number of examples use for train
num_examples = ... |
efbe003e6f7d6011f15ad0bf25ded4f9a5510964 | fd9d59de70d8db20a1c0686717647dea1a3f7e83 | /02-FLASK&PYTHON/modules.py | 42cc232c8db1820cfd68ae501984a6248814f104 | [] | no_license | Savas21/Web-Development | 61dfc6ac88f712669b7669893276ebf9d231af06 | 5878ad742567f62c381170aa078e58123d1bc4d3 | refs/heads/master | 2020-03-21T06:32:53.873254 | 2018-06-23T06:01:44 | 2018-06-23T06:01:44 | 138,227,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | modules.py | #import the functions that you created from functions.py and use it in another file
from functions import square
print(square(10))
#When we built the web applications sometimes we re gonna need to use some other people's func
#so that we can just import the functions instead of writing it by ourselves over again ... |
61619239aed4c724c36b173acb0845f875490e9a | 6799ed1842d4c3903d065ddf9ada606d0ddd9fad | /life.py | 4fe7976a13b56d0f53a7c1b37ea6047f63737588 | [] | no_license | leblanchannah/Flying-Squirrel | 12072d64142bc87850fe11be7eb0ed6aa193a9c0 | 27d74357eb140a2072d9a87d6ce670f957f7657b | refs/heads/master | 2021-04-18T19:41:08.049165 | 2018-04-08T20:14:01 | 2018-04-08T20:14:01 | 126,211,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | life.py | # Spencer Edwards
# Hannah LeBlanc
import copy
from tkinter import *
import time
graph = []
m = 25
# Conway class
class Conway(Frame):
def __init__(self,generations,game,outf):
self.gen = generations
self.game = game[:-1]
self.rows = len(self.game)
self.cols = len(self.game[0]... |
d84a372a542dabbc2dcc52b96f54c71fd8544311 | 1405b2b08b11dfdd00e6d091b5913ff977a4625a | /hw2_Anna/grid.py | b819a98a4a93328597e50a1dd5b5c72cae5782c1 | [
"MIT"
] | permissive | AnnaKnapp/SoftwareDesign | 50ce07c6a0bb27c1669396512eadd9ff086ee4c4 | cfc5d1703a2b61052702b4b70955443943d85742 | refs/heads/master | 2020-12-29T00:01:39.882525 | 2014-10-10T01:58:30 | 2014-10-10T01:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | grid.py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This temporary script file is located here:
/home/anna/.spyder2/.temp.py
"""
def grid(x):
horiz='+ - - - - '
verti='| '
print ('\n'+horiz*x + '+' +( '\n' + verti*x+'|')*4)*x
print horiz*x
grid(1)
grid(2)
grid(3)
grid(4)
#etc..
|
ad3d6ef824209120e5d57bedfc2ff9fe2d6cd6d4 | cc0ae5f8e7fc1334b2c8c5cb157904b65aeef503 | /monoplySolutions/website/migrations/0007_auto_20180105_1937.py | fd0b2b6f340f542d23c95ac9964f5c8f5a6d7f63 | [
"MIT"
] | permissive | CCecilia/MonoplyPropertySoltuions | 1bd67cda6e56731da3f7965f29d86bddcf9783c0 | 6445fa8a2622fbba2812dc49dd1f20d41b2e2e2d | refs/heads/master | 2021-09-03T07:29:07.304809 | 2018-01-07T02:28:50 | 2018-01-07T02:28:50 | 116,429,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | 0007_auto_20180105_1937.py | # Generated by Django 2.0.1 on 2018-01-05 19:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0006_service_featured'),
]
operations = [
migrations.CreateModel(
name='Job',
... |
b894b0a2af5d50ac834664ba6590c8677a658f8a | c3a96c0d930fefae8b081cafd10d9a88680652e7 | /ida/overlay_41/set_vars.py | b1b665dc2fc60d19cb5b90a2ac6a186d7d7afd06 | [] | no_license | yanmingsohu/ResidentEvil2-beta2-dump | 83b5188da39e23a5165d0461e81c20cec7ea9980 | 94812a633d9e445e248d30af0a90b65e693bf2d1 | refs/heads/master | 2021-05-18T12:44:48.984222 | 2020-03-31T13:42:51 | 2020-03-31T13:42:51 | 251,247,894 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | set_vars.py | del_items(0x8011A054)
SetType(0x8011A054, "unsigned short Bs_size1[16][30]")
del_items(0x8011A414)
SetType(0x8011A414, "unsigned char Bs_check_sum1[16][30]")
del_items(0x8011A5F4)
SetType(0x8011A5F4, "unsigned short Xa_sector01[3][29]")
|
5e07f6de9516a04e3a3858e1a5f9ed2f42126c21 | b6db3b987ac289b54f957dc68f558ee4da6200e7 | /spreadsheet/gt.py | 07234ea08012ccd2a7b841d0c8637e551267ec70 | [
"MIT"
] | permissive | ulyumdzhi/notification_bot | 284407422ef8e98f4e4ed64744850a9f2429aea1 | 98edd67417c6709b5c36189e6d7cea7aa4fb7041 | refs/heads/main | 2023-08-22T20:26:49.969715 | 2021-09-26T18:52:00 | 2021-09-26T18:52:00 | 386,260,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | gt.py |
import logging
# from pprint import pprint
import httplib2
import googleapiclient.discovery as GACD
from oauth2client.service_account import ServiceAccountCredentials as SAC
from api.loader import CREDENTIALS_FILE, spreadsheet_id
class GoogleTable:
"""Необходимый функционал общения с таблицой Google Sheets."""
... |
1cef3ec99df5cdf806f4766b7f7b0e4576770d6e | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstBase/BitWriter.py | 52a27ccb91e4518bcf06c653d1e9053c401633e1 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 8,474 | py | BitWriter.py | # encoding: utf-8
# module gi.repository.GstBase
# from /usr/lib64/girepository-1.0/GstBase-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... |