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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6d406bda95a6e4b142a56e0ad06c32cdd13d638 | e88e6990ba9e26dfd32c903b8902029994b6dc13 | /client.py | dad3c254768a70338a294fbe0e4c48eed453328e | [] | no_license | agnes-sharan/CO19-nscious | 0de75ec8775d00446788684a0e4801d4aa8297d9 | 480bec121b78f1ca6497fc3fb780fef8d1a9ced0 | refs/heads/main | 2023-04-05T10:29:47.434217 | 2021-04-11T14:53:48 | 2021-04-11T14:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | client.py | import geocoder
MAP_WIDTH = 1000
MAP_HEIGHT = 1000
MAX_SCORE = 100
SUM_AVG_WEIGHT = 33
class User:
def __init__(self, uid):
self.uid = uid
self.number_of_loc = 0
self.location = (0, 0)
self.score = MAX_SCORE
self.update_location()
def update_location(self):
g = ... |
700052941237fc0ecffa53c64a1afc75198599db | e8f3499caed2fd0b714a51a34907519d8ffb07c5 | /server/aux_functions.py | 929ee015c5d32399149c73968e618d107887267e | [] | no_license | diogodanielsoaresferreira/SecureMessagingRepository | 071dbecf5be57105af2c60124a85acd704659463 | 61fa9738fd11b29e8cd60bcd8de5a533863a591d | refs/heads/master | 2020-03-28T10:43:36.531826 | 2018-09-10T11:36:18 | 2018-09-10T11:36:18 | 148,138,517 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | aux_functions.py | #
# Diogo Daniel Soares Ferreira N 76504
# Luis Davide Jesus Leira N 76514
#
# Segurity Messaging Repository System 2017-2018
# Auxiliary functions
def stringToBytes(string):
return bytes(string, 'utf-8')
def bytesToString(byt):
return byt.decode("utf-8")
|
ec2349fe129f1f5e0131367521276ef5eda65137 | c65874c22c733f69822b82dd29a654bcc9fe366d | /2017-11/2017-11-29.py | bc0baf39099f554054fe3fc1f5b2e73da407a012 | [
"MIT"
] | permissive | YANGYANTEST/python-study | 5e5654153439b9c7f3e4fb3d862d5a37568a321c | 376203126f465f91eade98eaefca4ea2c123730b | refs/heads/master | 2021-09-04T22:04:33.783081 | 2018-01-22T14:55:04 | 2018-01-22T14:55:04 | 112,285,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | 2017-11-29.py | '''
字符串的操作
%s:代表字符串
%d:数字(整形)
%f:打印浮点数,
%.2f:保留几位小数
'''
name="xiaoming"
address="china"
age=18
money=100.126
print(name,address)
print(name+" "+address)
#作业:修改以上数据,能够打出浮点数字,如100.126
print("my name is %s,i live in %s,i am %d years old,i have %d money"%(name,address,age,money))
#打印浮点数
print("his money is %f"%(100.126... |
3b956933cd95b6b8ae3dcf25ad5f39b8f8494fd8 | 402b542c06e3f795273ab69247d7d711f721daa9 | /rest_introduction_app/api/challenges/challenge_6/model.py | bfe8ebf9f3d6d6160b70f96a63150ecbe6b80945 | [
"MIT"
] | permissive | wojciechbilskiice/rest-api-introduction-app | 81a12022ae2d59c8b9c2dd05e1c9f9207f33b0fc | 7e544b3d51de4c693d8921ca0daa8aec5f67d76a | refs/heads/main | 2023-05-05T18:40:14.251393 | 2021-05-22T13:18:13 | 2021-05-22T13:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | model.py | import enum
from dataclasses import dataclass
from typing import List
from pydantic import BaseModel
from starlette.exceptions import HTTPException
from starlette.responses import JSONResponse
class Item(str, enum.Enum):
map = "map"
tent = "tent"
knife = "knife"
torch = "torch"
camera = "camera"
... |
aec43322ac8aef636fd065f6490d3653796e0485 | cbee00cae64e09288f9458991ea83de5efe5ad42 | /__init__.py | f46156f3e9b7d4daf79495281c1f9ba8aa856432 | [
"MIT"
] | permissive | tangxubaba/pansys | 6bf72928ca30bfb3f17410da65b0c76545fbca80 | 9cf91ebc762ebe55ef11f58142794ace39c5c239 | refs/heads/master | 2020-05-27T01:12:51.108115 | 2018-11-23T07:57:19 | 2018-11-23T07:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | __init__.py | #!/opt/anaconda3/bin/python3
# -*- conding: utf-8 -*-
from .pansys import Ansys
from .pansys import tests
|
51d75c9be8114b9509d226555928bd6898b98df2 | f7ea22ee71a6733dbf7b19a08777a829ee74e169 | /maglearn_back/database.py | 52638e3a09f767e9f0fd09e303642391fc9189e4 | [
"MIT"
] | permissive | maglearn/maglearn-back | 5d6a72de53ce931b6c6126b4f96d5bbe1bb3a991 | cb5d8623f26e207b870c09c80cbc59911ab23794 | refs/heads/master | 2020-05-06T20:04:27.858072 | 2019-05-20T19:58:13 | 2019-05-20T19:58:13 | 180,219,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | database.py | import sqlite3
from datetime import datetime
import click
from flask import current_app, g
from flask.cli import with_appcontext
from flask_sqlalchemy import SQLAlchemy, Model
from sqlalchemy import Column, Integer, TIMESTAMP, Boolean
class Base(Model):
# this id implementation does not support inheritance
i... |
4ff8dec99c7c5108fc71b687aacb8e3d398792df | 4edcd582b4aa0e8311c6e7555bf64d05089e61dd | /challenge6/challenge6.py | d2c9caaaca97896bb89108e42be6c14c40baa480 | [] | no_license | polarisXD/Automation-Certification | ab4cb3f71b9104ac0623aa413bcde7859bdf14c4 | 47924fabf6697e3609c960c7b6e2ea5ee37e5e65 | refs/heads/master | 2020-09-10T21:03:24.681647 | 2020-01-09T22:31:27 | 2020-01-09T22:31:27 | 221,833,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | challenge6.py | import unittest
from selenium import webdriver
from commons.search import Search
from commons.tableCruiser import TableCruiser
class Challenge6(unittest.TestCase):
def setUp(self):
# code to startup webdriver
self.driver = webdriver.Chrome("../chromedriver")
self.search = Search(self.drive... |
234ce9e5238c4499e92df00902adccc9cb95072d | 927de352de8fda98fa5e1eb0bb57145a89ce0f36 | /Python27/WEB_T_MAIN.py | d2566fe73c2b86d074e07b50d4a6991aa6cc1d65 | [] | no_license | ge-be/ge-be | c99eb905d787f868ef07ad2172887a9d8c0934fe | 255a2bbb875ced0b23bed2ac17b528d03c562bad | refs/heads/main | 2023-07-15T01:52:13.799368 | 2021-08-25T12:01:03 | 2021-08-25T12:01:03 | 352,524,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | WEB_T_MAIN.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
WEB_T_MAIN.py
Created on 2013 Nov 20
@author: bgp
'''
# import cherrypy
import sys
import time
import cgi
import os
# import requests
import json
path = os.path.dirname(os.path.abspath(__file__)) + '/'
patht = path + 'TEST/'
patho = path + 'О... |
b4ca785f8d57ac7e648c2f9f28a416d3382d6cbf | 4b90b875bc8c6ed33b8257886e74e0a77eca59a0 | /src/hw/cgra_alu_operations.py | 4a6644521119c32e0f8db1f3c81dec873b782c1c | [] | no_license | mfkiwl/hpcgra | 4cdca7abdee27dcb16d51a57024ce81eeedd543e | 41d4cc5b6dccdc02136d5d39dd367333d81e85e5 | refs/heads/master | 2023-04-13T20:23:03.303205 | 2021-03-28T02:34:41 | 2021-03-28T02:34:41 | 352,275,673 | 0 | 1 | null | 2021-03-28T08:16:05 | 2021-03-28T08:16:05 | null | UTF-8 | Python | false | false | 3,898 | py | cgra_alu_operations.py | from veriloggen import *
class AluOperationUnary:
__type = "unary"
__num_operand = 1
def get(self, m, dst, src_a):
raise NotImplementedError()
def get_num_operand(self):
return self.__num_operand
def get_type(self):
return self.__type
class AluOperationBinary:
__ty... |
ed8b7576f8f2ed3ac2882acdd096f8132b87ff8d | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /recursion/leetcode/permutations/permutations-II-47.py | 5f74111516169392603894f985d63a2847470835 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | permutations-II-47.py | from collections import Counter
def w(nums):
freq = Counter(nums)
def dfs():
if not sum(freq.values()):
return [[]]
res = []
for val in freq:
if freq[val]:
freq[val] -= 1
for path in dfs():
res.append([val] + ... |
951416b9f9a3ef97a3463b56dae1a04c80723d88 | 9233865b1498ae8d6086b47d92abbcb33cd457a9 | /students/Y2336/Ambartsumova_Mariya/django_project_Ambartsumova/django_project_Ambartsumova/project_first_app/admin.py | 94ae486aa8221fcc14c9fcdca53e024026470ac3 | [] | no_license | mayaEvans/ITMO_FSPO_PP_web_development_2020-2021 | 8cc63b7652c7c6d0733c196fc132f08b635c1857 | 6d18cb9fdb8cd72102fefd7ba5d5b913699c9e20 | refs/heads/main | 2023-05-08T09:20:44.719942 | 2021-06-01T13:34:47 | 2021-06-01T13:34:47 | 343,766,294 | 0 | 0 | null | 2021-03-02T12:26:23 | 2021-03-02T12:26:23 | null | UTF-8 | Python | false | false | 256 | py | admin.py | from django.contrib import admin
from .models import CarOwner
admin.site.register(CarOwner)
from .models import Car
admin.site.register(Car)
from .models import Owning
admin.site.register(Owning)
from .models import License
admin.site.register(License) |
f50fbdbfa11272211b995357dbdfa7ed23c8be7d | d7f6b9156904989cd693d408cb7af9f2397b8ee5 | /pc-section/convert_mobile.py | 2ae64d1e148a61e8cfd060cc5d07a11605f9c1a0 | [] | no_license | aminesi/robustness-on-device | bb5982bf7f5733bed99e3dbc065fbe1936991f57 | aa00c1145406e6e0b4ab8ac59e176b713ed0cc02 | refs/heads/master | 2023-04-23T05:06:47.779543 | 2021-05-03T22:18:20 | 2021-05-03T22:18:20 | 362,982,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | convert_mobile.py | import numpy as np
from models import TFModel, TorchModel
from utilities import ModelType, DATA_ROOT, SELECTED, MOBILE, Backend, get_image_size, set_image_size
# noinspection PyShadowingBuiltins
def to_json(input, output, function=None):
if not isinstance(input, np.ndarray):
input = np.load(input)
wi... |
0327ccf383f8927075c42e4ac549d75cbb3fcbbb | e8b6f77712be0f9725c6e22d1d1fea4d576fb681 | /chapter_4/tests/test_common_ancestor.py | 9db10d3c96d2f801395b76f86a6009b193409dad | [] | no_license | goncalossantos/CtCI | 5ccfc045b359808b8c971223c4ea210a84208a31 | b8f4667718dcb1c732c0ec1f6d2c7499dc86695f | refs/heads/master | 2021-01-13T15:12:00.984146 | 2017-01-26T14:50:31 | 2017-01-26T14:50:31 | 78,950,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | test_common_ancestor.py | from unittest import TestCase
from data_structures.trees.base import BinaryNode
from chapter_4.common_ancestor import common_ancestor
class TestCommon_ancestor(TestCase):
def test_common_ancestor(self):
b1 = BinaryNode(1)
b2 = BinaryNode(2)
b3 = BinaryNode(3)
b4 = BinaryNode(4)
... |
3c5be18a6f2a77c435427fbfb4e6ff1de7d7c7ef | 1093b3ade5018b5bc8b141439a5b1979cb24a164 | /contact/views.py | 69dd48acc9066aa498860dcb1e3d13efd5ace0c1 | [] | no_license | DawidPawulski/Contact-box | d50102e08343fdeff85b4fb0881d9e709f5c3381 | 6269167cbcd8597dcdf0614610222c1629c6bdb8 | refs/heads/master | 2020-03-24T11:04:51.307156 | 2020-02-25T10:10:19 | 2020-02-25T10:10:19 | 142,675,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,435 | py | views.py | from django.shortcuts import render
from django.http import HttpResponse, request, HttpResponseRedirect
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.views import View
from contact.models import Person, Address, Phone, Group, Email
from django.views.decorators.csrf im... |
0e07c4c6f19e8c80eeb409ec10feb442d90b5173 | b371a9847170e2eaea27d918f61ddedb65577a21 | /backend/project/api/views.py | 88091e7f471be89406cff43349e6286c14ac91d9 | [
"MIT"
] | permissive | JXIong15/slide-messages-1 | c37f23419290471cb560a4436d77eaf4b26c1b28 | 843cd5de13a4cb716a202fb26ca3325227f9948e | refs/heads/main | 2023-07-05T03:03:40.027119 | 2021-08-27T00:34:38 | 2021-08-27T00:34:38 | 399,330,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | views.py | from rest_framework.permissions import IsAuthenticated
from .models import Message
from .serializers import MessageSerializer, UserSerializer
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from django.contrib.auth.models import User
from rest_framework.permissions impo... |
030bfe6c1a8e261ed53c8369ec8a9da8d5d7bccd | aa204ccdeb622ffa09a5ae8d44e92b781b6e9c55 | /Chapter 4/fun_practice.py | 8c96a86169eb1b716fc962c43645572a67134b46 | [] | no_license | NishKoder/Python-Repo | 1462f994cc7e60d3370d66f4fc84d663943973cf | f4996f5a8f9709413aba21e098a43339543ba383 | refs/heads/master | 2023-06-28T06:19:15.272046 | 2023-06-11T06:03:19 | 2023-06-11T06:03:19 | 232,992,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | fun_practice.py | # func to return last value of string
def last_letter(strings):
print(strings[-1])
last_letter(str(12322))
# func check number is odd or even
# def even_ood(num):
# if num % 2 == 0:
# return "even"
# else:
# return "odd"
# print(even_ood(64))
def even_ood(num): # paramenter
if n... |
55d6f50a77e2c24ebaab92ab93ba1c923b8aded9 | 1c8e98ad0efa7e65015f1509662729f073b737c2 | /countingWords.py | 97477e4ff0e99c0e9715115a4682b82d27ad8398 | [] | no_license | aadankan/Cwiczenia | 8b9a13db92933d7f6798702801b8ea51dac8cf90 | 7919299ee0896eb88288d6ebe33a953ff40996e9 | refs/heads/master | 2022-11-05T20:36:10.947472 | 2020-06-26T18:48:00 | 2020-06-26T18:48:00 | 257,289,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | countingWords.py | import pyperclip
a = pyperclip.paste()
b = a
a = a.split(' ')
c = b.split('.' or '!' or '?')
print("Tekst ten ma: " + str(len(c)-1) + " zdan " + str(len(a)) + " slow i " + str(len(b)) + ' znakow')
|
86a264f50d3bb3f5cd09467a708e262de7136233 | 33a00ed4fb700475037d6a18fcef3e5bf71a56f4 | /Pratikum 09/Nomer 3 Manipulasi String (MODIFIKASI BINTANG DI TENGAH).py | d8d35769711c88a1e7d817f83765531cd2302b86 | [] | no_license | DickyHendraP/Phyton-Projects-Protek | 8ab3dc6dde6e4b022a211172733c9a90b21d5f3b | 0ed7d1bfc272e41b78fde67dc27bd0618a3e945b | refs/heads/main | 2023-05-23T23:05:03.688002 | 2021-06-23T12:20:28 | 2021-06-23T12:20:28 | 302,228,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | Nomer 3 Manipulasi String (MODIFIKASI BINTANG DI TENGAH).py | #Membuat susunan bintang dengan bentuk menengah
#Memodifikasi Bintang
def Bintang(n) :
puncakBintang = int(n / 2 + 1)
for i in range(1, n+1) :
formasi = "*" * (1 +(i-1)*2)
print (formasi.center(15))
if (i == puncakBintang) :
for i in range(puncakBintang - 1, 0, -1) :... |
680c36185bfb284f1a61cfd02e28943dc4447743 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/analytics/exports/__init__.py | 6b65787c5dff29cf06e947282f4abf7f4e97c347 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 192 | py | __init__.py | from bitmovin_api_sdk.analytics.exports.exports_api import ExportsApi
from bitmovin_api_sdk.analytics.exports.analytics_export_task_list_query_params import AnalyticsExportTaskListQueryParams
|
13ebce8671e31ef81882cd2c2c96051794ccc8d0 | e95390894d4e275318eb505a6a6861cffdb30648 | /grobid_quantities/tests/test_quantities.py | 8529543a2e3bfc5ee0816ea72a8212b7123a6244 | [
"Apache-2.0"
] | permissive | lfoppiano/grobid-quantities-python-client | b4b85e2ff9106caa5c25f4bce0fb42d6e3b54268 | cb5ca4730141218e988854e39d4678d14ef91bd6 | refs/heads/master | 2023-05-25T17:38:36.869392 | 2023-05-23T00:04:01 | 2023-05-23T00:04:01 | 179,438,289 | 2 | 0 | Apache-2.0 | 2023-05-23T00:04:03 | 2019-04-04T06:47:36 | Python | UTF-8 | Python | false | false | 2,681 | py | test_quantities.py | import unittest
from grobid_quantities.quantities import QuantitiesClient
class QuantitiesTest(unittest.TestCase):
def setUp(self):
self.target = QuantitiesClient()
# def testProcess_text(self):
# result = self.target.process_text(text="We introduce in this paper D-SPACES, an implementation... |
bea69ff217453c329a84a8876a8d2a7847f4e9bd | 671bc98cb6eeddc7d3abd582be5dffdf2e417a84 | /community/views.py | 4203d5e07cc6eb28b23f3aa20ee3224423b4f919 | [] | no_license | PrashantThakurNitP/vcreate--a-crowd-sourcing-website | d35a8e9b6c36ecf4093750562d047ddcdf9dbf76 | 96efeb025f4b1b9ee824881fd53715bab0395c46 | refs/heads/main | 2023-02-26T13:50:23.266968 | 2021-02-02T08:47:51 | 2021-02-02T08:47:51 | 330,591,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | views.py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render,redirect, get_object_or_404
def community(request):
return render(request, "community/community.html")
def about(request):
return render(request, "community/about.html")
|
c086016787232d7a8e08476b2f033ad973283dfa | 55162581e61c77c65f69bdf708f2872940257c33 | /validator.py | 5ca1be30cf024c049935799e4b2147d5a608ea2a | [] | no_license | premchandlohar/store_product | e8c70a60c2b89facbacd7f24a0532e3f835a13e8 | 24c4295f08f2548c86c340363c8046756f566be7 | refs/heads/master | 2022-11-26T17:08:20.377434 | 2020-08-27T06:09:18 | 2020-08-27T06:09:18 | 242,927,762 | 1 | 0 | null | 2022-11-22T06:39:40 | 2020-02-25T06:31:58 | Python | UTF-8 | Python | false | false | 2,667 | py | validator.py | # from django.http import JsonResponse
# from django.core.validators import validate_email
import re
def valid_string(string): return (True if (type(string) != str) or (string ==None) or string=='' else False )
def valid_float(float_data):return( True if not isinstance(float_data,float) or (float_data=='') or (floa... |
03331366e248be5ed448d21b20c677890f35fa59 | ccbf481f8d158228108781feaae4d2405c0656bd | /python/xsWhere.py | aa676b6bce62fcef79e83ab15467dda3e6850184 | [] | no_license | concanon-dev/ExtremeSearch | b9441e22abf82b0ac6d1e879b22e5e4a58a4d2c8 | 27917bace84590bc31462ee90c1f3bee552ed9f6 | refs/heads/master | 2020-07-19T04:12:45.936723 | 2014-07-27T18:34:58 | 2014-07-27T18:34:58 | 206,371,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | xsWhere.py | #
# Copyright 2012-2014 Scianta Analytics LLC All Rights Reserved.
# Reproduction or unauthorized use is prohibited. Unauthorized
# use is illegal. Violators will be prosecuted. This software
# contains proprietary trade and business secrets.
#
import sys, subprocess, os, platform, time
import splunk.... |
d16e62689c866cc408f4b18d405243c5610f4211 | 42a28cb26d69b071a49434c4d4bc0ea9efdc691f | /portafolio/core/migrations/0033_auto_20200826_2007.py | a4647941d2e728ab8588f5e9bd8305dc4b074db2 | [
"Apache-2.0"
] | permissive | jhonfmg7/portafolioDjango | d547f6051f923b4725bb46f8c5456401616b80b4 | 64db6a371a84dcad4f22dd7cdeb598c7c2db124e | refs/heads/master | 2022-12-09T20:47:24.769236 | 2020-09-02T20:21:39 | 2020-09-02T20:21:39 | 290,881,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | 0033_auto_20200826_2007.py | # Generated by Django 3.0.5 on 2020-08-26 20:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0032_auto_20200826_2001'),
]
operations = [
migrations.CreateModel(
name='Achievements',
fields=[
... |
f3df3a6a1b3b6901d30fce35e2c07728f6889adf | 5ffb75456e184c3acc05b743aee4c2e2f9348aec | /chaoxing_tool.py | 20a5289e5e2e6a33298156aae0012756917d107d | [] | no_license | nerkeler/chaoxing_tool | 19e63cb4db6545eb78d9f7cc9efe2aa0b4cbf1de | 040ad24c751530be54824d0a92af8da2f3243836 | refs/heads/master | 2022-11-16T07:50:04.831535 | 2020-07-01T01:01:13 | 2020-07-01T01:01:13 | 269,937,754 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,639 | py | chaoxing_tool.py | import requests,json,random
from tkinter import *
from tkinter import Scrollbar,messagebox
import tkinter.font as tf
"""
作者:nerkeler
时间:2020-06-30
联系邮箱:2739038007@qq.com
"""
class AnswerGUI(Frame):
def __init__(self,master=None):
super().__init__(master)
self.master = master
... |
c0c94f8898635cecc4fb6dcb9e644e6bafebb590 | 9084ebd6103fe49beb1e1cc88a4289f8c8edc858 | /helper/azure_to_vott/azure_to_vott.py | d12965cf1e80cb0df863a032429f77ecc975ad25 | [
"MIT"
] | permissive | mcreng/MSxDJI | 25c06cbf4587f44d47d00b924667d36dd3f7c091 | d885af60d7ad78de620a0d68b213d31628abb78e | refs/heads/master | 2020-04-16T03:43:16.419639 | 2019-02-02T08:25:57 | 2019-02-02T08:25:57 | 165,242,544 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | azure_to_vott.py | import os
import json
from pprint import pprint
from sklearn.model_selection import train_test_split
import argparse
curr_dir = os.path.dirname(os.path.abspath(__file__))
list_of_image_name = []
def azure_to_vott(test_size):
with open(os.path.join(curr_dir,'obj/anno.json')) as f:
data = json.load(f)
... |
d56a633595ceb6b265289172343f9bc20141d4cd | cec5710718401b181f9d15d7bc1625da63ed6582 | /Code.py | 4fad297fad9a468514658bd93f59666ed6b10dcb | [] | no_license | daffa-m/Garbage-image-segmentation | 3bf506f984361ca3a2396ed17a7c2fea4a8f8d39 | bf398c47d44cfa10de1da8ce09ef30db26a855c0 | refs/heads/main | 2023-03-24T23:23:08.291026 | 2021-03-20T13:05:15 | 2021-03-20T13:05:15 | 327,862,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | Code.py | from flask import Flask, render_template, request, url_for
from werkzeug import secure_filename
from keras.preprocessing.image import ImageDataGenerator
import tensorflow as tf
import numpy as np
import os
import pspnet
import cv2
from tensorflow.keras import backend as K
import pathlib
from shutil import copyfil... |
b9a60ed292f674d2c909e50fc1a4a3b8aa92f0e2 | e2da1344128935afdf1f8fac66c99b76a1c7671f | /smartmirror/transfer.py | 2bc2cfff549b7ca22a4636dddc7514d69e8ff57a | [
"MIT"
] | permissive | fredrikiselius/solid-umbrella | 011926c845586893ea784171913e37798d23b439 | 8f65647db59647467396d92ec03263fc00b11f44 | refs/heads/master | 2020-03-27T07:58:18.500732 | 2018-09-01T09:56:11 | 2018-09-01T09:56:11 | 146,210,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | transfer.py | from dataclasses import dataclass, field
from typing import TypeVar, Generic, Union, List
from collections import abc
import time
T = TypeVar('T')
@dataclass
class Transfer(Generic[T]):
_is_iterable: bool = field(init=False, default=False)
_step: Union[T, List[T]] = field(init=False)
_start: T
_end: T... |
b8a3f82a414ba6c552899f4e91e4b2b12d6f69a4 | 7877d15dc55454d8111b327719e02318da58b820 | /Original Code/Transformer/Code/drawing.py | aeaf9b5628e60d44273a662aaf619c9718589a8b | [] | no_license | QuYue/ECG_Diagnosis | 70b21377160614e35b57909827b111a2c38f7418 | 9f1e1dfb9f6dd97159eac286d75ecef72abee38b | refs/heads/master | 2020-05-27T22:04:22.934787 | 2019-06-02T08:38:41 | 2019-06-02T08:38:41 | 188,782,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | drawing.py | # -*- coding: utf-8 -*-
"""
@Time : 2019/4/3 18:41
@Author : QuYue
@File : drawing.py
@Software: PyCharm
Introduction: Drawint the result.
"""
#%% Import Packages
import matplotlib.pyplot as plt
import numpy as np
#%% Functions
def draw_result(result1, result2 ,fig, title=[], show=False):
# actionly draw the... |
e32a7974c692f652aa3e716f285fa542d6b0fa15 | 25d9f7966649423e900e304c2bd7ccd5ab1ae0ce | /2/2-9.py | 62ede7a3f3735d2b0f2d6e2788f1277f2b04cfd5 | [] | no_license | JaeZheng/learn_python | ec6feb21bd7db4e766f21bec2a97c79c3e81632b | a16af222b566fbfc831da019162e876c0059df31 | refs/heads/master | 2020-03-30T07:26:16.404906 | 2018-09-30T09:01:48 | 2018-09-30T09:01:48 | 150,939,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | 2-9.py | # 输出最喜爱的数字
# 注意数字转字符串
number = 8
message = "favorite number is " + str(number)
print(message) |
f5ccb364375caa1f9deb067d49a4171bdde15dc0 | 6ceb184f73721493d8c0954aa64579282e34322f | /src/edu/uiowa/strategies/TopologicalGraph.py | f25786b12ef4273132b464490d515dd25fa5006a | [
"BSD-3-Clause"
] | permissive | farif/SySLite | 588a722c54aa6bdf5b77f91cb065f389d0b14aea | 3a2c6fd84394dc27c78906eacccd28471b09c1ca | refs/heads/master | 2022-12-29T04:22:38.500490 | 2020-10-16T16:16:49 | 2020-10-16T16:16:49 | 281,770,869 | 0 | 0 | null | 2020-07-22T19:56:02 | 2020-07-22T19:56:02 | null | UTF-8 | Python | false | false | 1,299 | py | TopologicalGraph.py | '''
Copyright (c) 2020, Board of Trustees of the University of Iowa.
All rights reserved.
Use of this source code is governed by a BSD 3-Clause License that
can be found in the LICENSE file.
'''
from itertools import combinations, product
import networkx as nx
def gen_dag(num_nodes, leaf_label):
num_nodes +... |
11483be69f20c983f7ef88c5c60e8f5193ad5afb | b54f5fe75dbb010a18d1da30a4f030fbb257ed4a | /winforms/tests_backend/widgets/properties.py | 7eb444c1639706dfc158486e0cb2e41d0b186a76 | [
"BSD-3-Clause"
] | permissive | beeware/toga | 449e3f008ad89e10f8ffcc61bdac798e7e825d09 | 01b076bd6434d0bd04c04ff72ac6eb20b9e973ea | refs/heads/main | 2023-08-24T11:33:53.705165 | 2023-08-24T00:06:09 | 2023-08-24T00:06:09 | 22,529,973 | 1,865 | 468 | BSD-3-Clause | 2023-09-14T18:46:58 | 2014-08-01T21:44:10 | Python | UTF-8 | Python | false | false | 1,766 | py | properties.py | from System.Drawing import Color, ContentAlignment, SystemColors
from System.Windows.Forms import HorizontalAlignment
from travertino.fonts import Font
from toga.colors import TRANSPARENT, rgba
from toga.fonts import BOLD, ITALIC, NORMAL
from toga.style.pack import BOTTOM, CENTER, LEFT, RIGHT, TOP
def toga_color(col... |
5a74578f71f5fed0df2fa524e5ab85e85dfc8e9a | f4e17640afef6d1b4d4a85f583a90e37f705dbd5 | /B2G/gecko/python/mozbuild/mozbuild/testing/mochitest.py | d1b37a5bd113ed5ef481dd93564853ee91c58ff0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wilebeast/FireFox-OS | d370362916f0c5a5408fa08285dbf4779f8b5eb3 | 43067f28711d78c429a1d6d58c77130f6899135f | refs/heads/master | 2016-09-05T22:06:54.838558 | 2013-09-03T13:49:21 | 2013-09-03T13:49:21 | 12,572,236 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | mochitest.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import unicode_literals
import os
from mozbuild.testing.test import TestRunner
class MochitestRunner... |
e2b6c4acd236810c6b23d53999309ed06e3f4e2e | eab60fb2c9b09603bea330d4bfdb809fa2c383c3 | /main.py | 32949c56b4b471c8e2a11682a3671e406829ccf0 | [] | no_license | Cschwalb/FO6167 | 899d1e3f99622d3d89c7e9b45095f57ecbf06f3b | d9aa444fcffef1c8137af420ec0eca4b77c6b7a4 | refs/heads/master | 2023-01-01T13:02:58.557499 | 2020-10-24T19:33:59 | 2020-10-24T19:33:59 | 306,801,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | main.py | # This is a sample Python script.
from scrapy import Request
from scrapy.http.response import Response
from scrapy.spiders import Spider
from scrapy.http import FormRequest
import lxml.etree
import lxml.html
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for c... |
59186226036dd79fd090ca9b4fc1272284a6db7f | 020f5faf4c8a8c2989efefcf7ae238cb6f4db9f7 | /learning_rules.py | 66d6a0c597bc8dd68177577355fd97322d25cb8c | [] | no_license | HenrikMettler/EvolvingOjaRule | c59269b289a31671b6b5d1139b9b1c8cc3c66c23 | e9a4850b2372e02ba7eef983070664322c5fccbb | refs/heads/master | 2022-12-09T00:43:49.560080 | 2020-09-04T13:33:15 | 2020-09-04T13:33:15 | 266,776,481 | 0 | 1 | null | 2020-06-03T07:07:59 | 2020-05-25T12:43:09 | Python | UTF-8 | Python | false | false | 5,387 | py | learning_rules.py | import numpy as np
import matplotlib
#matplotlib.use("TkAgg")
from matplotlib import pyplot as plt
from functions import *
# Todo: if reused: adapt to changed learn_weights
def oja_rule(w: np.ndarray, x: np.ndarray, y, learning_rate=0.005) -> np.ndarray:
"""Oja linearized learning rule (Oja, 1982: eq.3)
Arg... |
db261663a6cb24e8a30567670dede1d2006d3463 | facda294831390aede940e2f9f8365740f0f1828 | /metarecord/importer/tos.py | 70b2a625687bebfcfce323c6fda21cf8618aa3d6 | [
"MIT"
] | permissive | City-of-Helsinki/helerm | 64e5700092f71fe3af6d03e5aa9aa33fd0e9e6ef | b9bc59bd6f96d0985e1cb3f9b78720b833593696 | refs/heads/main | 2023-05-31T20:57:00.442188 | 2023-05-29T10:24:44 | 2023-05-29T10:49:13 | 56,149,476 | 5 | 9 | MIT | 2023-05-29T10:49:15 | 2016-04-13T12:23:15 | Python | UTF-8 | Python | false | false | 20,188 | py | tos.py | import logging
import re
from collections import OrderedDict
from openpyxl import load_workbook
from metarecord.models import (
Action,
Attribute,
AttributeValue,
Classification,
Function,
Phase,
Record,
)
class TOSImporterException(Exception):
def __init__(self, message, row_num=Non... |
6849f65d11e67509a1617251ce5d8581ec3e3186 | 01d5fad2bff4aeab6a00aa0a842047f89b1b7b1c | /src/pyjuhelpers/logging.py | ed43a7eb03021950a4e5c26eaf0f61517f7ff756 | [
"MIT"
] | permissive | jumbrich/pyhelpers | 0036ca476c7fac05da942c76c85a9ff99f9a9f7b | 27e23ccca3da69e4d7cb0c985f0dd63ee46d01e1 | refs/heads/master | 2020-03-21T07:37:48.695616 | 2018-09-01T19:16:08 | 2018-09-01T19:16:08 | 138,290,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,912 | py | logging.py |
import logging.config
from pyjuhelpers.timer import Timer
import logging
logging.STATUS_LEVEL_NO = 25
import structlog
structlog.stdlib.STATUS =logging.STATUS_LEVEL_NO
structlog.stdlib._NAME_TO_LEVEL['status'] = logging.STATUS_LEVEL_NO
structlog.stdlib._LEVEL_TO_NAME[ logging.STATUS_LEVEL_NO] = 'status'
logging.a... |
1019d2234fd6435ec02dafe5c33f61988d669009 | 854200e125316c4826843a6e919aee78a3eb55f2 | /home/m04.py | d196e70f3f10f7a9f3fbba392d4ad63c9ad5b3f2 | [] | no_license | ykchat/checkio | 4de469986e2173ece08e43bafa88c1e7140927cc | 32ddb48364961d931352acb78f965c2c7d380e65 | refs/heads/master | 2021-01-10T21:58:57.197379 | 2016-03-13T05:10:57 | 2016-03-13T05:10:57 | 53,768,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | m04.py | def checkio(data):
data = data.lower()
chars = [x for x in set(data) if x.isalpha()]
chars.sort()
result = ''
max = 0
for char in chars:
count = data.count(char)
if count > max:
max = count
result = char
return result
if __name__ == '__main__':
... |
0543f977dbebe9560936564f793af5f24233921f | cbeb312592488f733333857c7be0fa84972c344e | /algoritmos/21_secuencia_collatz_mas_larga/secuencia_collatz_mas_larga.py | be70730e13cf12d0ce5ed997ff5d94c429b68aaf | [] | no_license | luislama/algoritmos_y_estructuras_de_datos | 0899a6857ebea19cca65abccd5bb5e04fd660198 | 1fec721d01a3a1c20a906d393fbee346d4688cc4 | refs/heads/main | 2023-02-04T02:30:17.780118 | 2020-12-24T09:57:25 | 2020-12-24T09:57:25 | 315,063,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | secuencia_collatz_mas_larga.py | '''
Un serie en donde el siguiente termino es calculado de la siguiente manera:
n2 = n1/2 ; n1 es par
n2 = n1*3 + 1 ; n1 es impar
No se ha probado, pero sin importar cual numero sea el primero, la serie termina en 1
13: 13 40 20 10 5 16 8 4 2 1
12: 6 3 10 5 16 8 4 2 1
... |
a0a343acf301768c7d5211d767645a2ae282c88d | e8c61d73ec72fafaec2697498bdd366386a4fe73 | /LAB 7/maxvotes.py | 3366dbc375c924b47fa957583563fa4e2fe63cd6 | [] | no_license | gandhinaidukenguva/DAA-lab-19bce7552 | 0e53b9b1ff3abb17ad55cc8f31a2044deca54d6e | 953c408123f005a9d5c93914a7714149516543e0 | refs/heads/main | 2023-09-02T06:36:51.229105 | 2021-11-17T05:03:53 | 2021-11-17T05:03:53 | 426,550,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | maxvotes.py | n = int(input())
seq = [int(i) for i in input().split()]
def divide_func(seq, l, r):
if l+1==r:
return seq[l]
elif l+2==r:
return seq[l]
m = (l+r)//2
left = divide_func(seq, l, m)
right = divide_func(seq, m, r)
c1, c2 = 0, 0
for i in seq[l:r]:
if i == left:
c1+=1
elif i == right:
c2+=1
if c1>(r-l)//2 and left !=... |
2fadc5c90d1bae14c57fc3bf02582e12aa8abdf6 | 6e291a380cbad4fc9db620dd181c8fc2da3b274e | /ntr/g2d/nclr.py | d13952b18fed5e31215f98a92ecaef7ab0529c5b | [] | no_license | ReignOfComputer/PPRE | d6cddcb865da5309b7c28d43cb4b8a228b6f606c | 26e27f0677b1e68bba75b8f52a4b35d0d7f3737e | refs/heads/master | 2021-01-13T03:36:31.701134 | 2016-12-25T10:25:22 | 2016-12-25T10:25:22 | 77,320,864 | 0 | 0 | null | 2016-12-25T10:23:59 | 2016-12-25T10:23:58 | null | UTF-8 | Python | false | false | 3,735 | py | nclr.py |
import array
from PIL import Image
from generic.editable import XEditable as Editable
class PLTT(Editable):
"""Palette information"""
FORMAT_16BIT = 3
FORMAT_256BIT = 4
def define(self, clr):
self.clr = clr
self.string('magic', length=4, default='PLTT') # not reversed
self... |
bd06b04666ade1e7591b02f8211bc9b62fd08936 | b8e5931bc3f7a3170590ef1db30fc445df584399 | /flat_file/drop_first.py | 69354c536193936c9d5b33fffde86102f5403da8 | [] | no_license | zzahara/Summer-Project | 0d41c21b82aedddc155e455251c700b5fabd2806 | 400bcf0301fb50da6cdb5fb0a6a29555ae601eeb | refs/heads/master | 2016-09-06T08:17:11.026815 | 2010-08-11T23:43:01 | 2010-08-11T23:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | drop_first.py | #!/usr/bin/env python
import sys
import errno
# read first line from stdin and discard it
first_line = sys.stdin.readline()
# print all other lines
for line in sys.stdin:
try:
print line,
except IOError, e:
if e.errno == errno.EPIPE:
exit(0)
|
360063940bb82defefc4195a5e17c9778b47e9e5 | 4b1928defb3875cb0cecb9d188bc6e56084a9879 | /Tests/Script.py | 36427895bad267b28d8fa8360908f196d0db247a | [] | no_license | FroznFox4/Project1 | 15a89e895589e2cf7536ee03b01bcf6195d4039f | 77a9008a4317c6401fccb253361154ff9128ae5a | refs/heads/master | 2020-07-01T19:12:13.916488 | 2019-08-08T13:51:21 | 2019-08-08T13:51:21 | 201,268,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | Script.py | from requests import post
import json
import argparse
import base64
from ReadFromWindow import new_image_string
from ParsOnText import ParsOnText
# Функция возвращает IAM-токен для аккаунта на Яндексе.
def get_iam_token(iam_url, oauth_token):
response = post(iam_url, json={"yandexPassportOauthToken": oauth_token})... |
75716aaaca63f8ca6d32c885021c1dc0f9a12dac | 9161d1421be019e0573bd123460fe69e7cce4cb9 | /mosqito/sq_metrics/loudness/loudness_zwst/loudness_zwst.py | 28ff2bed340486cd7d4b90529c0c5024e5b7e276 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | Eomys/MoSQITo | dadbc9159bfef348b1b762a0c8bef8a7f3ed1ef0 | b6bf207ef4ac422fa075b5117bb186281b52b7c1 | refs/heads/master | 2023-08-03T13:02:07.943373 | 2022-12-23T15:31:36 | 2022-12-23T15:31:36 | 249,368,386 | 107 | 40 | Apache-2.0 | 2023-08-02T15:47:18 | 2020-03-23T07:56:37 | Jupyter Notebook | UTF-8 | Python | false | false | 3,582 | py | loudness_zwst.py | # -*- coding: utf-8 -*-
# Third party imports
import numpy as np
# Local application imports
from mosqito.sound_level_meter import noct_spectrum
from mosqito.sq_metrics.loudness.loudness_zwst._main_loudness import _main_loudness
from mosqito.sq_metrics.loudness.loudness_zwst._calc_slopes import _calc_slopes
from mosq... |
0e9d0927e8d69b0c0fad98479d47f2409c95a751 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /tenka1-2018-beginner/c.py | fcbba657e10dd7df27731785573ca37a5e98552e | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | c.py | n = int(input())
a = sorted([int(input()) for _ in range(n)])
x = a[:n//2]
y = a[(n + 1)//2:]
ans = 0
for i in range(len(x)):
ans += abs(x[i] - y[i])
for i in range(1, len(y)):
ans += abs(x[i - 1] - y[i])
if n % 2 == 1:
ans += max(
abs(a[n // 2] - x[-1]),
abs(a[n // 2] - y[0]),
)
print... |
e3dece36ba3e5b3df763e7119c485f6ed2155098 | f0cf855206a694efb01e6c0fa28cb3449fc8038d | /main.py | 88ff343f13bd64b851d0a4129ca8241d7519e423 | [] | no_license | KareemHassan1/Text-Summarization | 398778b5a980fab68aa017e7d0456cd7e3fb101d | 03479e4bcb0e0b72957e8389252c503a6f55581b | refs/heads/main | 2023-06-11T12:50:24.067456 | 2021-07-04T16:03:45 | 2021-07-04T16:03:45 | 382,805,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,902 | py | main.py | # Core Packages
import difflib
import tkinter as tk
from tkinter import *
from tkinter import ttk
from tkinter.scrolledtext import *
import tkinter.filedialog
import PyPDF2
from tkinter import filedialog
import torch
import json
from transformers import T5Tokenizer, T5ForConditionalGeneration, T5Config
# ... |
64366e8532ffe05db7e7b7313e1d573c78a4e030 | abe6c00f9790df7e6ef20dc02d0b1b225b5020cb | /tests/software/test_pip.py | 206c7839d958000d46033d4137c6c9738a743c98 | [
"Apache-2.0"
] | permissive | PrefectHQ/prefect | 000e6c5f7df80f76a181f0a30f8661c96417c8bd | 2c50d2b64c811c364cbc5faa2b5c80a742572090 | refs/heads/main | 2023-09-05T20:25:42.965208 | 2023-09-05T18:58:06 | 2023-09-05T18:58:06 | 139,199,684 | 12,917 | 1,539 | Apache-2.0 | 2023-09-14T20:25:45 | 2018-06-29T21:59:26 | Python | UTF-8 | Python | false | false | 2,778 | py | test_pip.py | import packaging.requirements
import pydantic
import pytest
from prefect.software.pip import PipRequirement, current_environment_requirements
class TestPipRequirement:
def is_packaging_subclass(self):
r = PipRequirement("prefect")
assert isinstance(r, packaging.requirements.Requirement)
def ... |
8c318d7152bfdf2bc472258eb87dfa499b743193 | f3af143bada7f79db1e15b4386e5107bc99eb212 | /ProjectBaseTest1/python核心编程/06-web服务器/wsgipython/m_hello.py | c81132fda176f356e236a6a617156468c5c20625 | [] | no_license | xxxfly/PythonStudy | a5ceae1d2b16cfdba19871507458154fc292bca0 | 478d89ccefc91a84f935aebdca796c9d4c23ef61 | refs/heads/master | 2022-04-08T13:45:03.405768 | 2020-03-09T03:47:50 | 2020-03-09T03:47:50 | 45,187,749 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | m_hello.py | # coding:utf-8
def application(env,handle_headers):
status="200"
response_headers=[
('Server','')
]
return "" |
6a601d1c7c3c162c0902d03e6c39f8d75d4bcaf0 | 29c4df020642baa6d274720df9ba2be9a5f6ef82 | /point_sources/ptsrc_gibbs.py | 699c0e9b133028ea3c9d4a8f69769314d08e966b | [] | no_license | amaurea/tenki | b744172bb50a92df421141f221def613db244db9 | 6e69a1e5f702e770ba09dcec2bab51719d5644e5 | refs/heads/master | 2023-06-24T16:09:18.295266 | 2023-06-13T11:57:30 | 2023-06-13T11:57:30 | 24,066,491 | 3 | 7 | null | 2020-07-26T09:53:26 | 2014-09-15T17:44:17 | Python | UTF-8 | Python | false | false | 16,786 | py | ptsrc_gibbs.py | import numpy as np, argparse, sys, itertools, os, errno, warnings
from mpi4py import MPI
from enlib import enmap as en, powspec, utils
from enlib.degrees_of_freedom import DOF, Arg
from enlib.cg import CG
warnings.filterwarnings("ignore")
#from matplotlib.pylab import *
parser = argparse.ArgumentParser()
parser.add_ar... |
af35075eaca9bba3d6bdb73353eaf944869cdede | 4310e12366818af27947b5e2c80cb162da93a4b5 | /moon_manager/tests/unit_python/helpers/pdp_helper.py | e970961a571a841324d2a716d84b8bb778370ecb | [
"Apache-2.0"
] | permissive | opnfv/moon | 6c0e5672b197e1d826b9a153274c74a14491c6d7 | 7bb53c64da2dcf88894bfd31503accdd81498f3d | refs/heads/master | 2021-01-12T11:02:03.901533 | 2020-06-03T08:06:52 | 2020-06-03T08:06:52 | 72,769,565 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | pdp_helper.py | # Software Name: MOON
# Version: 5.4
# SPDX-FileCopyrightText: Copyright (c) 2018-2020 Orange and its contributors
# SPDX-License-Identifier: Apache-2.0
# This software is distributed under the 'Apache License 2.0',
# the text of which is available at 'http://www.apache.org/licenses/LICENSE-2.0.txt'
# or see the "LI... |
3f55fa8155f6fb2d7decbf232ff62db800948b0d | 2041e26768e0af596c9a7c72efc4ea5fc1db5ef4 | /tweetcleaner.py | fc6df1fefa28ba5e3853b7f79766d3cb3396fa77 | [] | no_license | toggled/Tweeterscraper | 88d3c139d7c2d950ac8fa1e5623954d6dff60e34 | 39cb13424907030a4b7df3fcfd85b787d8ef073b | refs/heads/master | 2021-01-19T02:16:32.463310 | 2017-04-05T05:21:48 | 2017-04-05T05:21:48 | 87,268,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | tweetcleaner.py | __author__ = 'Naheed'
import preprocessor as p
import re,sys
class Tweetcollection:
def __init__(self,tweets):
self.tweets = tweets
p.set_options(p.OPT.SMILEY, p.OPT.NUMBER, p.OPT.EMOJI,p.OPT.MENTION,p.OPT.URL,p.OPT.RESERVED)
def cleantweet(self,tweet):
# try:
# parsed_twe... |
f3b0d5492aa44a0937485daebba8288735732c83 | de2a25ea14f02be0f188670d8d7f00e2086d3880 | /Mr.X_and_his_shots.py | d0d4bff9551afbf8cbc9b016f9b029041b96e806 | [] | no_license | vyshaal/PythonProgramming | 2fc4d360efc619891d8bd0d98327cb180525c524 | 4ab1ab30a88b381c870af66305e8e9e761c0cbda | refs/heads/master | 2021-09-18T19:40:29.675268 | 2018-07-18T19:25:21 | 2018-07-18T19:25:21 | 109,762,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | Mr.X_and_his_shots.py | def bst(x,A,low,high):
mid = int(low + (high-low)/2)
if x < A[low]:
return 0
if A[mid] == x:
return mid
else:
if A[mid] < x < A[mid+1]:
return mid
elif x < A[mid+1]:
return bst(x,A,low,mid)
else:
return bst(x,A,mid+1,high)
# A ... |
5198b9cdce3503b94181584e6d4af5f10fdcb1ef | dfddb756b213919cb7e88031cc6103e6d02e7274 | /paginationproj/paginationproj/app1/views.py | f06e67fd0091da9dba250817f42ae4d81b56855b | [] | no_license | BhushanTayade88/RestApi | e7713d6701e84c7d20624b3d2a7adcba7d96e7a9 | d185346132de1a653bcf557325dd332630b10ceb | refs/heads/main | 2023-08-29T09:08:27.812861 | 2021-10-05T16:43:42 | 2021-10-05T16:43:42 | 383,775,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | views.py | from django.shortcuts import render
from .models import Employee
from .serializers import EmployeeSerializer
from rest_framework import generics
from .pagination import EmployeePagination,EmployeeOffsetPagination,EmployeeCursorPagination
# Create your views here.
class EmployeeListView(generics.ListAPIView):
querys... |
ea21a29e7205fc9969b411a822bf8c897f1dfada | 07f01a6f7f34f381f5029a591f436cafe4446ef6 | /code/train.py | e703e797d50512bb3b3bf9c43820be058d40c1cc | [] | no_license | Madokami/CourseProject | 9707ff8ceedf333e28b012b6a2ddd6de189922f8 | 5c8824f8ff88f485e428227d43fa78afc64e2a0b | refs/heads/main | 2023-02-07T14:57:24.655892 | 2020-12-15T08:35:17 | 2020-12-15T08:35:17 | 307,210,005 | 0 | 0 | null | 2020-10-25T23:00:21 | 2020-10-25T23:00:21 | null | UTF-8 | Python | false | false | 2,782 | py | train.py | import numpy as np
import tensorflow_datasets as tfds
import tensorflow as tf
import json
BUFFER_SIZE = 10000
BATCH_SIZE = 64
VOCAB_SIZE = 500
def encode_data(dataset):
encoder = tf.keras.layers.experimental.preprocessing.TextVectorization(max_tokens=VOCAB_SIZE)
encoder.adapt(dataset.map(lambda text, label: t... |
07edf49fe3248e0a65e84b022adf0c7840c0a880 | 4223f36e623cee8e9fe60091289e975f1c8f30cb | /strategy_building_blocks/filter_handler.py | dca509e8ed99f6b9a963ed5fd26011b36f1eac64 | [
"Apache-2.0"
] | permissive | gafzan/AlgorithmicTradingStrategies | 026f890f1daa8da1ca8d95ae0023fd273adb700d | 14b032170da23173588967581676c8e900f053c4 | refs/heads/master | 2023-03-16T18:27:16.609460 | 2023-03-02T10:29:07 | 2023-03-02T10:29:07 | 242,465,107 | 2 | 1 | Apache-2.0 | 2020-04-15T06:40:11 | 2020-02-23T05:57:49 | Python | UTF-8 | Python | false | false | 4,255 | py | filter_handler.py | """filter_handler_old.py"""
import pandas as pd
import numpy as np
from jsonschema import validate as validate_json
from tools.array_tools import sum_nan_arrays
class FilterHandler:
"""Definition of FilterHandler"""
def __init__(self, filter_collection: (dict, tuple, list) = None):
"""
Use... |
ee539eb2dd3a8afcd3c3af6111041b13374bc78e | e9a587b3995395f70a65e3873b41bb9d3c105e25 | /expression/collections/seq.py | 05386d87ea8fd73bc29dd8809709f27ad1887cdc | [
"MIT"
] | permissive | paucarre/Expression | 48feb2abce6b023e7ee9cec006c6aa20da20fcdd | 6e1528a48fcca799efc518452105fc867e578cc5 | refs/heads/main | 2023-07-08T22:03:00.264382 | 2021-08-07T22:20:40 | 2021-08-07T22:27:03 | 393,916,813 | 0 | 0 | MIT | 2021-08-08T09:30:17 | 2021-08-08T09:30:16 | null | UTF-8 | Python | false | false | 26,413 | py | seq.py | """Sequence module.
Contains a collection of static methods (functions) for operating on
sequences. A sequence is a thin wrapper around `Iterable` so all
functions take (and return) Python iterables.
All functions takes the source as the last curried
argument, i.e all functions returns a function that takes the sourc... |
11e134c91588f61d2554274e69f918041a74ad1b | 50bc4a323226ba0468acdb66d730ca8b6e843950 | /elevennote/src/utils/decorator.py | 0012b144edeaf5ffd3c83a0a7833f8533792b44a | [] | no_license | connormullett/PythonElevenNoteAPI | 39c0f42f8f82d7d465004cb1090ba9b71d415d9f | b5c716cca4c7a86782f3f1e2732b30bba9216b29 | refs/heads/master | 2023-02-08T06:10:02.532323 | 2019-07-09T22:54:21 | 2019-07-09T22:54:21 | 192,788,430 | 0 | 1 | null | 2023-02-02T06:30:58 | 2019-06-19T18:59:06 | Python | UTF-8 | Python | false | false | 960 | py | decorator.py |
from functools import wraps
from flask import request, g
from elevennote.src.services.auth_service import Auth
def Authenticate(f):
@wraps(f)
def decorated(*args, **kwargs):
data, status = Auth.get_logged_in_user(request)
token = data.get('data')
if not token:
... |
85260e6dd2d35173e95265de635e1d36483b05c7 | 468f397949b514c03b8b497bdff0c7dc6dff753c | /addons/hc_graph_definition/__openerp__.py | 8789b4ed20408a6781d3c2207cf0906c57c5c8e7 | [] | no_license | LasLabs/odoo-fhir | bc1750de277c71a453a1c75a2f3fbe6ffc8faf4b | 4eaccbd218f89587217b932651f4eb38feb43047 | refs/heads/master | 2021-01-20T05:09:11.970604 | 2017-04-28T21:44:17 | 2017-04-28T21:44:17 | 89,753,143 | 1 | 0 | null | 2017-04-29T00:00:03 | 2017-04-29T00:00:03 | null | UTF-8 | Python | false | false | 1,745 | py | __openerp__.py | # -*- coding: utf-8 -*-
{
'name': "Graph Definition",
'summary': """
Graph of resources
""",
'description': """
A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references.
The Graph Definition resource de... |
01a4f7f0f1569b81ebfe7d63c9996790600d11e6 | 4a249efbba0ff8fd4a72396a85cda3be839ed579 | /content/lessons/03/Now-You-Code/NYC3-Distance-Conversions.py | 7ffcd90aca020352ae2ce40f9577a3043f1b4baa | [
"MIT"
] | permissive | Goldoth/256-Labs | 71f2b50fa75c295ae8ca5cdd4a6d622c8fa17896 | 89ef0df302bbc6b126711ba732cae13646f0d8cb | refs/heads/master | 2021-01-11T14:47:07.093056 | 2017-02-24T05:19:45 | 2017-02-24T05:19:45 | 80,218,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | NYC3-Distance-Conversions.py | '''
Now You Code 3: Distance Conversions
Write a Python program to enter a distnace in feet then convert that
distance to yards and miles.
For example:
Enter distance in FEET:15000
That's 5000.0 yards or 2.8
NOTES:
- Research the converion formulas on your own.
- Format output to one decimal place
... |
5e2fde8e1f90e40185595d03d7b05d8715f33790 | cb7e1f1ba00212ba9c55e4e6c179bd03159a584e | /swizzle.py | a1951c198779acd0ae73730c533772c6fe903c5c | [] | no_license | rockbruno/lldb-jailbreak-plugins | f82ebaae3846acbe5ce2437108ec50ddf33ae29f | 78ad6c1b589540731ecbd14206a009afea29a4ac | refs/heads/master | 2020-12-03T04:12:01.074098 | 2017-07-10T16:23:30 | 2017-07-10T16:23:32 | 95,829,544 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,498 | py | swizzle.py | # MIT License
# Copyright (c) 2017 Bruno Rocha
# 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, merge, pu... |
1dca4dfb45f53decf8985c52adab221234f53dfe | d83634df78b3fea721f3293e4ec77b7c9bc2403c | /old.py | cf2e31ed7bad7c241403bc8d975e98df4d55a5b4 | [
"MIT"
] | permissive | itskegnh/CellVID | 387749d5776dd58447f6b23cf45ff1a185e58575 | 38b42156dd46387ee2a4a58b47fe2964e1362048 | refs/heads/main | 2023-08-19T17:45:06.377028 | 2021-09-26T20:05:08 | 2021-09-26T20:05:08 | 395,878,640 | 2 | 1 | MIT | 2021-08-14T20:22:47 | 2021-08-14T03:42:17 | Python | UTF-8 | Python | false | false | 5,473 | py | old.py | # Imports
from PIL import Image, ImageOps
import os
import sys
import cv2
import threading
import time
class CellVid:
def __init__(self, video_path, frame_rate, frame_steps, frame_count, size, step):
self.video_path = video_path
self.frame_steps = frame_steps
self.frame_count = int(frame_count)
... |
1264799a15d331db0125233fc623fa3196af4716 | 1bad8454b0e3e44a98019c93b67b1e82eb280542 | /board_class.py | 5a54cc01931467a0d92d1fad62ea9d16ff41bd33 | [
"BSD-3-Clause"
] | permissive | mchalupiak/PythonMineSweeper | a197b33242e85f1f230d0ee372ae7d50dfa8e90b | 0bb1cf50f4ddbdee808f2dcdca5e4c0e190af566 | refs/heads/main | 2023-07-29T02:23:47.409232 | 2021-09-11T22:40:38 | 2021-09-11T22:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | board_class.py | from random import randint
import os
# This class define the entire game board
# It will be used to create two boards, one for storing what the player sees and one for storing the underlying mines and mine numbers around a given block
# I'm new to classes in python (or anywhere else), so this file will be heavily comme... |
cc334c3db24a5698317e93e42d53bfda2d275348 | 55deb26e7f6318f33d185d68b315cc314eaf3126 | /numpy/numpyP10.py | 749a3473ffca9dbfc861be249f74b870d2728985 | [] | no_license | BUBBLEbubbleBUBBLEbubble/deep-learning-from-scratch | 9a8165df28239d69f3029fbc0befb9dfc49f632d | b1b1d1244166c8d4df59cc8c61af9d2cb52f0b89 | refs/heads/main | 2023-03-11T05:00:31.817924 | 2021-03-01T13:28:43 | 2021-03-01T13:28:43 | 341,416,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | numpyP10.py | """
Numpy怎样对数组排序
"""
'''
--Numpy给数组排序的三个方法:
numpy.sort:返回排序后数组的拷贝 https://numpy.org/doc/stable/reference/generated/numpy.sort.html
array.sort:原地排序数组而不是返回拷贝
numpy.argsort:间接排序,返回的是排序后的数字索引
--3个方法都支持一个参数kind,可以是以下一个值:
quicksort:快速排序,平均O(nlogn),不稳定情况
mergesort:归并排序,平均O(nlogn),稳定排序
heapsort:堆排序,平均O(nlogn),不稳定... |
ad47321640fd0c18626c7b867d3104a9ab2591d3 | 75be58138ba44d4c15ce7eb426897baa6babc2fc | /free_money/__init__.py | 9d43f8d9e738bae8e439e4861985e9b89bda8ebc | [] | no_license | dev-academy-programme/plug-free-money-challenge | 472dcd8a1c9afb4fe9e698768464364f7af0ef68 | f69dbfd86dd508917e3b3b56129ea1a262fa4456 | refs/heads/master | 2020-03-27T21:20:12.130540 | 2018-10-08T01:47:35 | 2018-10-08T01:47:35 | 147,135,841 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | __init__.py | from plug.abstract import Plugin
import free_money.error
import free_money.model
import free_money.transform
class FreeMoneyPlugin(Plugin):
@classmethod
def setup(cls, registry):
components = [
# Include your plugin's models/transforms/errors etc here.
free_money.error.NotEnou... |
d931889eeafbbe23afa6d5d6f5973cf8ff8ab85c | 1160725d5b7c1b611ec39e68fe6c04b08d117bd8 | /problems/171-excel-sheet-column-number.py | 099c0f8f62c091a36e68910f3246ad20bf4ffcb5 | [] | no_license | jlshix/leetcode | 831df59175ea6d219f0796b63eb8ca8b74e803e7 | 36726256d81d5cd0f8771b5d30da732a770b295d | refs/heads/master | 2020-04-10T23:25:03.323571 | 2018-12-11T15:12:15 | 2018-12-11T15:12:15 | 161,352,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | 171-excel-sheet-column-number.py | # https://leetcode-cn.com/problems/excel-sheet-column-number/
class Solution:
def titleToNumber(self, s):
"""
:type s: str
:rtype: int
"""
letters = '*ABCDEFGHIJKLMNOPQRSTUVWXYZ'
nums = list(s)
res = 0
level = 0
while nums:
letter ... |
76162fcb980aa7bac9f89d24478a586262ec13cf | 9e0b8ca35cccd008982020d1d8d4ec9eced59718 | /numpy_basic.py | f8a584ab98257ed68395a84b590aa1f2dd23d3ae | [] | no_license | INKCIO/AIPreview | 6b416884c29b3e262a45c32a3c277dd1b28d7ae7 | 7057c908c7d850bf75dccaf61e71433f45d25de8 | refs/heads/master | 2020-04-23T18:49:25.961005 | 2019-03-03T09:17:45 | 2019-03-03T09:17:45 | 171,381,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | numpy_basic.py | import numpy as np
a1 = np.arange(15).reshape(3, 5)
print(a1.shape, a1.ndim, a1.dtype)
print(np.zeros((2, 3)))
print(np.ones((2, 3, 4)))
print(np.linspace(0, 2*np.pi, 100))
|
045282307ee6d56c48d0bdb931b8cf5ed2ab66df | d286439ecb8fd66a21e6797ecc66107a41e3a3ea | /tests/utilities/test_testing.py | a860fd9376608e0f63b2f930e9a5488f77f3a13e | [
"Apache-2.0"
] | permissive | limx0/prefect | 6efe5f912172c370cae34c1c37d788054079c80f | 68b13fd59159a46439763f59abc3e6f4f36c5f0d | refs/heads/orion | 2023-03-17T14:42:06.420786 | 2022-03-15T20:15:14 | 2022-03-15T20:15:14 | 205,947,172 | 1 | 0 | Apache-2.0 | 2023-03-23T04:45:16 | 2019-09-02T22:43:52 | Python | UTF-8 | Python | false | false | 547 | py | test_testing.py | import warnings
import pytest
from prefect.utilities.testing import assert_does_not_warn
def test_assert_does_not_warn_no_warning():
with assert_does_not_warn():
pass
def test_assert_does_not_warn_does_not_capture_exceptions():
with pytest.raises(ValueError):
with assert_does_not_warn():
... |
e74283185b66ac870ad9400fa59be61d28cb6ee6 | 9bc4a331d27768963da59adb082f47977ccd18ad | /sergeant/encoder/compressor/__init__.py | 59bd1aae72e79aa76e012fc0d5cae2d68675eece | [
"MIT"
] | permissive | Intsights/sergeant | 0b2349ba33f59022764176d14dc6bb72826ef930 | c729af127d3257435c6dd32ead3f7b412cef7ca6 | refs/heads/master | 2023-08-11T02:01:21.531725 | 2022-12-11T15:54:41 | 2022-12-11T15:54:41 | 253,191,109 | 163 | 14 | MIT | 2023-07-22T14:47:42 | 2020-04-05T08:44:07 | Python | UTF-8 | Python | false | false | 103 | py | __init__.py | from . import _compressor
from . import bzip2
from . import gzip
from . import lzma
from . import zlib
|
dca480ac67b03b250f0dcf0effaebdfcb99ebb3e | dfd18aab302bac405a30ab83f30cdacb8c1e1f99 | /main.py | 2262bcd43264b3860151e571a50f02fd20c6967a | [
"MIT"
] | permissive | tzungtzu/Like-My-GF | 6c4f5b9bcebff258566863152867d17a608bb937 | 397139f14e7d4ebb01ba41129a8b34ab0d9cc1b2 | refs/heads/master | 2021-01-19T18:49:16.794221 | 2017-08-23T10:47:19 | 2017-08-23T10:47:19 | 26,364,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | main.py | from time import sleep
from instagram.client import InstagramAPI
import logging
access_token =
api = InstagramAPI(access_token=access_token,
client_secret="")
recent_media, next_ = api.user_recent_media(user_id="5921677419", count=10)
# recent_media = InstagramFeed.get_media(user_id="20152050... |
48350aff75f4f29ab88d2cbfedf2cc06d1aa9022 | 80c7396c41e36f5bd3bd1609f975dd7da701a2c0 | /challenge/urls.py | 6c92516e07ea0ec2ab47b359d9165321765adcd0 | [] | no_license | pepelisto/challenge-moran-martin | 241faa050fefca11700f989e58c46ded6abb2d95 | ade2a9744ad3360bbd50f8fdb265fb0ed701da70 | refs/heads/master | 2022-12-12T18:54:55.076823 | 2020-08-25T03:05:50 | 2020-08-25T03:05:50 | 290,066,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | urls.py |
from django.contrib import admin
from django.urls import path
from airpnp import views
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
path('admin/', admin.site.urls),
path('api/listings/', views.CreateAndShow.as_view(), name='listings'),
... |
afc55fccf269423b7fca913cfa6a8a500fa2de41 | 6478bde5c74f1bdbcdb075bbccf140df8fb75c72 | /src/stdext/src/third_party/googletest/build.respire.py | 52dfafba9ecc007705059ec1190bb6a75a43bf7e | [
"BSD-3-Clause"
] | permissive | aabtop/ebb | 277fb6a0119d19b5bf7f283417a0e316c405712a | 2fd86f68aab9f48f65c3653c20a163f7b88c43c3 | refs/heads/master | 2021-09-22T08:38:09.062201 | 2021-09-16T07:47:07 | 2021-09-16T07:47:07 | 246,169,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | build.respire.py | from collections import namedtuple
import os
import respire.buildlib.modules as modules
def Build(registry, out_dir, configured_toolchain):
if not os.path.exists(out_dir):
os.makedirs(out_dir)
gtest_configured_toolchain = configured_toolchain
gtest_configured_toolchain.configuration.defines += [
'GT... |
56ae727ba25e3a41535442a273e2d991e5a1751a | 547d8c2803937c958cccca1d7dca9c3d9defcd8b | /helloWorld/helloworld.py | 2f88488a94c90ac29c315c3f535265835e8eac88 | [] | no_license | fredgruber/python | 1a727819223c046783df5ed4c2b9697cab8139e7 | 89be37be190526275c7bd8139b05e964bd0f0d31 | refs/heads/master | 2023-02-01T12:29:11.768611 | 2020-12-14T20:35:27 | 2020-12-14T20:35:27 | 320,066,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | helloworld.py | print('Hello World Local')
|
42f573f2cd6fc311b404b94ef524cfb2bc2bbed7 | e122829621de3f5563820afa652839d6f41f5fdb | /datasets/sequence_folders_mono.py | 0a788dbdb5e972c8b03c299e91abca097d9382b9 | [
"MIT"
] | permissive | yasinalm/gramme | 9854b95fc6bee25cd5a530e40ca147329b60544f | 48d689628a7c6508dedba716a6c678c02358babc | refs/heads/master | 2023-04-07T04:18:35.688307 | 2022-09-10T12:14:53 | 2022-09-10T12:14:53 | 328,816,091 | 33 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,997 | py | sequence_folders_mono.py | import torch.utils.data as data
import numpy as np
#from imageio import imread
from pathlib import Path
import random
from PIL import Image
from colour_demosaicing import demosaicing_CFA_Bayer_bilinear as demosaic
from .robotcar_camera.camera_model import CameraModel
import utils_warp as utils
class SequenceFolder(... |
154952f855ab0f802fcf9cc6e18bc062f61ff8d3 | 18a81d0fa14b17715b755af42fbfb1e9a6476ef9 | /postprocessing/corr_dual.py | 7cdd1812c80f3502d49c7fde087cae9b718e5e84 | [] | no_license | Ping-Hsuan/PyROM | f5145000428ec8ec0ab513a02023cba6e84e1a0b | 2b088f3c596f015a9c6cfcb4286e13b02afedbff | refs/heads/master | 2022-01-22T03:41:07.849013 | 2022-01-13T17:55:46 | 2022-01-13T17:55:46 | 251,134,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | corr_dual.py | import numpy as np
import matplotlib.pyplot as plt
import os
import sys
sys.path.append('/Users/bigticket0501/Developer/PyMOR/code/plot_helpers/')
import setup
import reader
import checker
setup.style(1)
colors = setup.color(0)
setup.text()
print("---------------------------------------------")
print("This is the nam... |
28a374019320cd77721e088a55deb4927d40a6e0 | 2f1e20e4c7b0c86c65243f1c4a817bb562257b1d | /classmanager/classs/admin.py | cb7b634d5565524fe0ddfc07b64d8bca20386576 | [] | no_license | quanquandiandian/day03 | 7ae5787ff54cce032a9dae589016bb6e5953f26d | f8826d990e7eb92891c08aa36bf4291771e25df9 | refs/heads/master | 2022-12-22T08:06:33.514684 | 2020-09-26T15:39:20 | 2020-09-26T15:39:20 | 297,899,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | admin.py | from django.contrib import admin
from classs.models import TeamInfo,PeopleInfo
# Register your models here.
admin.site.register(TeamInfo)
admin.site.register(PeopleInfo) |
d2cb7bcf579bb37357544a9186e593a2e292aaef | 2a079101821e5bc492f0cb89a4be9612a638add3 | /Model.py | a4b69b0fa5ae9a53444c76af59de903a5565217a | [] | no_license | sagar23sj/ML-DevOps | d8a27cd8e54daeeca6df9e47e1fe4891b2687a35 | a60ae0377a2d858f943e755d10f374ba9233079d | refs/heads/master | 2022-09-18T03:08:16.580765 | 2020-05-29T16:08:15 | 2020-05-29T16:08:15 | 267,253,326 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | Model.py | # baseline cnn model for mnist
from keras.datasets import mnist
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Dense
from keras.layers import Flatten
# load train and test dataset
(trainX, trainY... |
d615a8455d9e7a32126970344e385fd4f1ef1675 | 2b55bd9192168b99110ed29e097bdeee372b0a1f | /programs-part@2/array2.py | bdcd0cb76aab3160445e0327631def231ba6ca7c | [] | no_license | himavardhank/PYTHON-PRACTICE-PROGRAMS | bc0b13076e2722ff5ca3dde68726415df83aed90 | 4c651daf36b1959a1a1285bf011108f7f2faf808 | refs/heads/master | 2020-04-23T02:59:41.940949 | 2019-02-15T12:55:32 | 2019-02-15T12:55:32 | 170,863,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | array2.py | from array import *
a=array('i',[5,6,7,8,9])
n=len(a)
i=0
while i<n:
print(a[i],end='')
i+=1
for c in range(n):
print(a[c],end='')
|
90caf3be85f1379723c17f09b5b4983319fab46d | aa730ccdc6bd76b762011aff8c3bf51e58e44524 | /uacoin/__manifest__.py | 15261bc2e4cf3300c473505f39463c0a8f2111ed | [] | no_license | zabuga2018/odoo_custom_addons | 599de633eb0b61e8106fc18af473aee6a71b4a68 | 483f05f2919e9eb9c5a7dc800a61e6d8dff15b90 | refs/heads/11.0 | 2020-03-26T05:15:30.093843 | 2018-12-27T09:31:07 | 2018-12-27T09:31:07 | 144,546,881 | 0 | 1 | null | 2018-10-19T06:58:14 | 2018-08-13T07:52:20 | Python | UTF-8 | Python | false | false | 299 | py | __manifest__.py | # -*- coding: utf-8 -*-
#
#
{
'name': 'UACOIN',
'description': 'Savings Paying System UACOIN',
'author': 'Alexey Zabuga',
'depends': ['base', 'account'],
'data': [
'security/ir.model.access.csv',
'views/uacoin_view.xml',
],
'application': True,
}
|
7a34dc004ef7b125384a2a406147dcc76f23ad58 | 3104f6d6a8ea41780e74ad3644480505106273f0 | /Binary Search/Binary-Search-5/Find object in a grid .py | d256c7e29f659b609563abb47d062e8d5b1c0b21 | [] | no_license | radadiyamohit81/Code-for-FAANG | b5e81e94ba14b21687d57782019a05aa2d00f19b | 9f0ffaf61eb11d1fdea0a661a5732c5a76e62326 | refs/heads/main | 2023-03-12T18:53:14.905484 | 2021-02-27T12:21:15 | 2021-02-27T12:21:15 | 342,849,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | Find object in a grid .py | # // Throws an error if 'row' or 'col' is out of bounds
# public Response getResponse(int row, int col) {
# // black box
# }
# enum Response {
# HOTTER, // Moving closer to target
# COLDER, // Moving farther from target
# SAME, // Same distance from the target as your previous guess
# EXACT; // Reached dest... |
e9f78ce83e55bae7e84a06ed291cc24a9126ea49 | eeb2bafdd4f03416533d61806656a8846dfe7b97 | /Graphs/rangeSumBST.py | 1ca2771f0dcc8e25f64921f8a420dfafb2c1ada9 | [] | no_license | kuncao0228/GradAlgorithms | af0a4421ea8737a55ca3ce683f35af94f9eb24c3 | 8307714ef7c99cb376b4660430ffdcb1c602f6b7 | refs/heads/master | 2020-04-15T19:34:42.489202 | 2019-06-22T17:55:32 | 2019-06-22T17:55:32 | 164,955,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | rangeSumBST.py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def rangeSumBST(self, root, L, R):
"""
:type root: TreeNode
:type L: int
:type R: int
... |
6c02f2ae0ef04e9f3ebc30eca000d62e97d1adb1 | 3f8676e197c78346e2adea64a39418afd17c8221 | /jorldy/config/ppo/cartpole.py | 14469db5ce572a75c0bcbd28fa9dfe59ae6800cb | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | yuzhouxianzhi/JORLDY | 9cc7f8410bebd6bc952b003e4028587a1b883d5d | 62f1e22ad4a76daae9dbe802e9fb9a1367aebc4c | refs/heads/master | 2023-08-30T16:52:40.795723 | 2021-11-18T13:59:13 | 2021-11-18T13:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | cartpole.py | ### PPO CartPole Config ###
env = {
"name": "cartpole",
"mode": "discrete",
"render": False,
}
agent = {
"name": "ppo",
"network": "discrete_policy_value",
"gamma": 0.99,
"batch_size": 32,
"n_step": 128,
"n_epoch": 3,
"_lambda": 0.95,
"epsilon_clip": 0.1,
"vf_coef": 1.0... |
f484b74510a5e8769b3b4a8aadec5401a7153737 | e7c0687d6d6280f149b24336177ad5dc5fd8d679 | /Creattextfiles2.py | e9078571fb670b82cc36a9af423940fb8247b3eb | [] | no_license | Gazzamac10/Aecom_Practice_Line- | 10ce74582ff11bf6d8a337babf156ec59c196b7e | 506ab2209126d77678ba99175cf787912a7a4b66 | refs/heads/master | 2022-02-28T02:33:11.954571 | 2022-02-10T09:14:07 | 2022-02-10T09:14:07 | 114,023,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | Creattextfiles2.py | import os
import xlrd
#dir = "C:\\Users\\mccarthyg\\PycharmProjects\Aecom_Practice_Line-"
#print dir |
9d50180913aeaa7de4bb6ab8b74194dd736c52f6 | ab1be95e1357ebecd3bd5c2bce8cd56d89453540 | /api/views/faculty.py | 28bb3777844ea4e5770266ee1cbdcaf772f81dc7 | [] | no_license | dhirajkumar347/Smsystem | fb6d5195dccd6b9e62e57817596f668d90c33cad | 9d52361480dda2493ea216c3f5096570913dd5ad | refs/heads/master | 2020-05-29T17:15:48.468553 | 2019-07-29T12:34:33 | 2019-07-29T12:34:33 | 189,269,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | faculty.py | from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
# from rest_framework.pagination import PageNumberPagination
from school_management_system.models import *
from api.serializers import *
from rest_framework import generics
from rest_framework import viewsets
class faculty_Registra... |
d0dee75bb514c509b9c503aa186e5dbfddc06d83 | fe556b0e894d2d96d88ad0be661c341444504342 | /server1/views/root.py | cf8f777a0ba0e85ce7543391abd755347899b46f | [
"MIT"
] | permissive | jimmy-zx/AIwaffle_Server1 | bec59d06c5658a58514cb8c6ecdbc86d7a82b17c | 055457c3e6e38da08fefb3a5dbcdf2e7923d5b57 | refs/heads/master | 2023-03-16T09:54:54.336600 | 2020-09-23T11:33:57 | 2020-09-23T11:33:57 | 220,663,231 | 2 | 2 | MIT | 2020-02-12T13:26:41 | 2019-11-09T15:35:55 | Python | UTF-8 | Python | false | false | 434 | py | root.py | """/
"""
from flask import (
render_template, abort, Blueprint,
)
bp = Blueprint("root", __name__)
@bp.route("/")
def index():
"""The index page
GET /
Returns: the index page
"""
return render_template("index.html")
# return flask.send_from_directory("../AIWaffle-website/dist", "index.h... |
99f21a33f3885d9e00da6151566767851755eb9c | 236f5857b8f9ed0a4b02a0c73a00aef25575d0f6 | /projectUtfpr/urls.py | de69be30f961270c118888fbf551f3d2d50c3182 | [] | no_license | igorsteinmacher/projectUtfpr | c1644fadcf9f1af6f162474752a812d99a030216 | 8851eea94b2215642de5bb45af065ef7bfa189ae | refs/heads/master | 2021-01-20T23:37:45.986147 | 2015-09-18T01:33:39 | 2015-09-18T01:33:39 | 42,692,228 | 0 | 0 | null | 2015-09-18T01:31:15 | 2015-09-18T01:31:15 | null | UTF-8 | Python | false | false | 325 | py | urls.py | from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = [
url(r'^desenvolvimento/', include('desenvolvimento.urls', namespace="desenvolvimento")),
url(r'^search/', include('haystack.urls', namespace="haystack")),
url(r'^admin/', include(admin.site.urls... |
e8af5e47dcf6e721a42806cc9bb3ab9895b49b6c | 6705c5482d3d8b170b85382b205f008f883b42ea | /musicgenerator.py | 4fed841b80c19aee0f92aa017a0010233e6da8eb | [] | no_license | jejansse/commit2music | 78d6a4495d0ae26fbd6cfaf43cf6063db9475a36 | c8faeb1cf0c2d9cea77730923cc25e41c70a18f7 | refs/heads/master | 2021-01-19T14:30:14.212001 | 2013-01-25T10:48:50 | 2013-01-25T10:48:50 | 7,818,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | musicgenerator.py | from midiutil.MidiFile import MIDIFile
import datetime
from collections import defaultdict
if __name__ == "__main__":
authors = set()
commits = defaultdict(list)
last_author = ""
for line in open("gitlogs.txt"):
if line.startswith("Author"):
author = line[7:-1].strip()
... |
614f3265e567c4fbfd6e773266209c655f8a35d5 | 612592a63c9c7b46f4b84f6b2ea6a18187e4838e | /TWOSC_autotest/TWOSC_autotest_web/PO/plan/jidufenyue/jidufenyue_audit.py | 52825e995f3adc5e93777580a4653ab395000886 | [] | no_license | xiaoxiangLiu/test_gitbase | 5c624175b58897d3314c178924fd79fc48925a96 | da1b9c82b8501f838892a3a5089392311603309e | refs/heads/master | 2021-05-08T14:56:34.612042 | 2018-03-08T16:32:39 | 2018-03-08T16:32:39 | 120,100,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | jidufenyue_audit.py | __author__ = '38720'
# coding=utf-8
from base_page.base import Page
from selenium.webdriver.common.by import By
class Audit(Page):
'''季度分月页面类-审核'''
# 通过
agree_loc = (By.CSS_SELECTOR, 'input[value="通过"]')
# 驳回
rebut_loc = (By.CSS_SELECTOR, 'input[value="驳回"]')
# 备注
remark_loc = (By.CSS_... |
2a2aa338142da4670cc253172fa3de6b55a39455 | 451d5e3ed6f65bfe6b6918caa4a07ec5c2734de7 | /cwcn_dowaave_hrz_nebajke.py | 567cedadf9ea1bc03b062ebd26c5ee1c41492201 | [] | no_license | savethebeesandseeds/cuwacunu_dowaave | b75c40d236be23bedc8b1721d1c9303bfa6f94ff | 836406874e59c97f97253c42fcbaca8c751dce1a | refs/heads/master | 2023-08-30T01:22:41.742420 | 2021-10-25T05:43:23 | 2021-10-25T05:43:23 | 411,772,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | cwcn_dowaave_hrz_nebajke.py | # --- --- ---
import os
import matplotlib.pyplot as plt
# --- --- ---
import cwcn_dwve_client_config as dwvcc
from cwcn_dwve_client_config import dwve_instrument_configuration as dwvic
# --- --- ---
ON_FILE_WLOT_FOLDER='./hrz_dumps'
hrz_dpi=120
# --- --- ---
def assert_folder(_f_path):
if(not os.path.isdir(_f_pa... |
e58a438154581c98522b45fff2bf57ed77466e16 | a8807548d249b90e21825530135774a8b0188349 | /cisco_platforms_pillar/JabberCreator.py | b3fb9ee73f4787a15006ab57954f105331ad4437 | [
"MIT"
] | permissive | ponchotitlan/devnet-webinar | 12f46b608c5ca3a1dc726aa2c303966a1c3a525c | 5d07305d41d7ef4d9a55573db5d264262f7073a3 | refs/heads/main | 2023-04-06T05:22:32.235884 | 2021-03-29T15:26:25 | 2021-03-29T15:26:25 | 352,723,946 | 1 | 0 | MIT | 2021-03-29T17:12:59 | 2021-03-29T17:12:59 | null | UTF-8 | Python | false | false | 1,651 | py | JabberCreator.py | from CUCMConnectorAXL import *
import logging
class JabberCreator(CUCMConnectorAXL):
def add_jabber_device(self, device_name, lines, site, team, username):
"""
Creates a Jabber device with the specified settings
This example takes as default many of the common settings, although it ... |
4df075b03611beac64ad27e67487e591503b3d3a | 2af20d24f8064335d3f37f200b4ce110572cfd8e | /TESTCASE DF.py | fa295efda53eee1a5fc2249a8ba72b08582fd99f | [] | no_license | zenithplot/DA_Group_8_JIAYUAN_AMIRUL1 | ee4fa1282bc7b61cbde7c0a718841abf8494767e | 372be663995548b1e3ebb56c45689ea772c80605 | refs/heads/master | 2020-07-07T22:11:14.493277 | 2019-08-21T02:28:39 | 2019-08-21T02:28:39 | 203,485,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | TESTCASE DF.py | import unittest
import DAData as da
class MyTestCase(unittest.TestCase):
def test_data(self):
da.alldf.usa()
# da.alldf.ca()
# da.alldf.au()
# da.alldf.nz()
# da.alldf.aa()
# da.alldf.usa_des()
# da.alldf.ca_des()
# da.alldf.au_des()
# da.all... |
f6585936d0deb6a2dcc3326489101f6e709d6e32 | 66c5551e053b7bfaff13e355fd290068b00c432d | /generate.py | 07a4c2e3c6c6892d8354ace175f25b22c4870f96 | [] | no_license | mehuljain1104/AutomaticTextGenerator | 8bd88835d8c563c54e7216efc744f816fb298f1e | e4c9031544cb81cb4575d627ea7d06b48c1ca3be | refs/heads/master | 2021-04-06T00:16:22.980372 | 2018-03-22T17:03:57 | 2018-03-22T17:03:57 | 124,778,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | generate.py | import sys
import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
filename = "shaky.txt"
raw_text = open(filename).read()
raw_text = raw_text.lower()
ch... |
9a86a4c566b45cbe3d41b83024fc25724e413a99 | bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4 | /sage/src/sage/graphs/schnyder.py | 42540fb315c008db1563654685b794cf9f3c92f5 | [] | no_license | bopopescu/geosci | 28792bda1ec1f06e23ba8dcb313769b98f793dad | 0d9eacbf74e2acffefde93e39f8bcbec745cdaba | refs/heads/master | 2021-09-22T17:47:20.194233 | 2018-09-12T22:19:36 | 2018-09-12T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,331 | py | schnyder.py | """
Schnyder's Algorithm for straight-line planar embeddings
A module for computing the (x,y) coordinates for a straight-line planar
embedding of any connected planar graph with at least three vertices. Uses
Walter Schnyder's Algorithm.
AUTHORS:
- Jonathan Bober, Emily Kirkman (2008-02-09) -- initial version
REFE... |
dc2489016aa67bf79bf66cbf609a4a9b981b3cc1 | 1ea98d999207713e97c7a22cd1b528cefcc1c728 | /machine_learning/dinnersys.py | 33aa5b077b332fbfb63d318d4427b23ee12bba66 | [] | no_license | lawrence910426/dinnersys_analysis | e1b12e819b6a157facb64b8214bce29c3bf8a562 | ccf41abce121db55903266f9459351438fece7bd | refs/heads/master | 2020-04-01T17:15:39.545598 | 2019-12-30T12:31:39 | 2019-12-30T12:31:39 | 153,420,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | dinnersys.py | import os
from datetime import datetime
import time
from dateutil.relativedelta import *
import MySQLdb
import math
class dinnersys:
def __init__(self, cursor, start, end):
sql = """SELECT
O.id ,U.id ,C.id ,F.id ,LO.esti_recv_datetime
FROM orders AS O
INNER JOIN users ... |
c5235f960b7afbdf906a940605c158e1c85b4a33 | a03ba540dfba8ac6a3efe4fd26d3d5d5ba4aa784 | /mysite/product/migrations/0003_auto_20190817_1536.py | f8ceb9e2f41d1e7b706c9e14720becd1989b1592 | [] | no_license | yusufhazerhan/E-Commerce | 7e64aee5e7dc6ec3d749afce31eb6b90e3e3395f | 0f752ba2862f6e3478e06230054718105803a6d7 | refs/heads/master | 2022-12-04T05:39:09.830380 | 2020-08-26T10:55:10 | 2020-08-26T10:55:10 | 290,206,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | 0003_auto_20190817_1536.py | # Generated by Django 2.2.3 on 2019-08-17 12:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0002_auto_20190817_0141'),
]
operations = [
migrations.AlterField(
model_name='categ... |
2b16fd725394ef9c8b419b0dbebd664a5699e478 | 01cdc5649230b615ad813c95b4009aeb195431ba | /ca3/generate_figures.py | df3b58896322a1fb6cbffc7a5d6d4849f50a853d | [] | no_license | DanielDM325/ICS | 29f76aaa02dd85c4c7f8a2796689ff852d90dad6 | a03b4c395ec4e0315a9cce79677892c7aa1c5bec | refs/heads/master | 2023-03-07T07:00:38.086025 | 2021-02-17T22:23:06 | 2021-02-17T22:23:06 | 337,876,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,954 | py | generate_figures.py | """
ca.py
Introduction to Computational Science
Assignment 3 The λ Parameter and Sampling
Daniël Mizrahi
10675418
This program generates all the states for a given unidimensional celullar
automata given the parameters r (the range), k (the alphabet, width and height
and the langton parameter to generate a rule table.... |
5ef580de9a80ed568de9f08ef6ebf903c51a6fed | 8a8d69e6c9fe859144080bc6ebcc74a1eba14897 | /meetups_app/migrations/0001_initial.py | 4f2a31c9278986b9326fd0ea0841310340db9448 | [] | no_license | RoketStemp/Meetups | 482067bd7240e645f00a1c3dccd2363c48efa70a | 90b08ffaec20cc2135e8420e69ad7625017e554a | refs/heads/master | 2023-06-21T12:29:22.615780 | 2021-07-27T15:14:26 | 2021-07-27T15:14:26 | 388,759,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | 0001_initial.py | # Generated by Django 3.2.5 on 2021-07-23 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Meetup',
fields=[
('id', models.BigAutoFiel... |
6dd50aef22dbc3265d1dbd18a4ae7fcef3d98ef9 | 7b3ccbab4ee999ddc10eeb0bba2730d47e374dc9 | /post.py | 4cb790aa296d242be0a6b0052a98a7498353a2dc | [] | no_license | joelcormack/woowooapp | 2b6a3cd0dee711602de41bd64c63ea2965b080f9 | c82e4d3c42b07be99f98ff4bc651a4f8dccedb13 | refs/heads/master | 2021-01-10T09:57:41.051546 | 2015-12-12T13:47:55 | 2015-12-12T13:47:55 | 47,879,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | post.py | import requests, json
data = {"site-name" : "SPOC","site-add-one" : "St Pancras Old Church","site-add-two" : "","site-postcode" : "NW1 1UL","contact-firstname" : "Brendan", "contact-lastname": "Collins","contact-email" : "b@s.com","contact-landline" : "0123456789","contact-mobile" : "012873873"}
#headers = {'content... |
f7ffa39a373e101d6477b31f92681dfe4801773d | d787874265576d48888bd0ed4211d0b6859de7a1 | /1.py | f71b03a2db08e34f71eabd663d4b39bbd9fe6666 | [] | no_license | rg1235/Hadoop-Map-Reduce | 4d4cdfe58028f0e7e7c35af42a7fc834a871bf16 | b8f3fc7947742e0e344cf3e86990f517ec4b5a16 | refs/heads/master | 2021-09-01T03:27:29.999282 | 2017-12-24T13:58:55 | 2017-12-24T13:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | 1.py | #!/usr/bin/env python
import sys
import fileinput
import os
import math
clusters=[]
temp=[]
cluster=""
c2=""
#bashCommand = "extract commands"
#os.system(bashCommand)
#command to copy "hadoop dfs -copyToLocal kmeans/input.txt hi"
def fileread():
global clusters
global temp
global cluster
h=open("mapper.py... |
0533f714995977493bc8c3b737f918a81caf9107 | 62cdc1eab8b935c1c111e04d7d58b8809a4687c8 | /cv2.py | 7b01dc652cf0c427bdd179bfa25664b5948e9476 | [] | no_license | jayjpsc/screen-capture-using-cv2 | 991697a3b2fa9fadbacdd0ac784b1ec3521a5ac4 | 0e16c97f41b7a77589033959de505a01a1e99a12 | refs/heads/master | 2020-06-05T21:26:34.970146 | 2019-06-18T13:58:28 | 2019-06-18T13:58:28 | 192,550,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | cv2.py | import numpy as np
import cv2
from PIL import ImageGrab
import time
last_time = time.time()
while(True):
screen = np.array(ImageGrab.grab(bbox=(0,40,600,500)))
print('loop took {} seconds'.format(time.time()-last_time))
last_time = time.time()
cv2.imshow('window' ,cv2.cvtColor(screen, cv2.C... |
564d8c65e2b19f7988a80d7a0c99382f024557c6 | b5a619c06a11637244acc41067ef32ff7f037a47 | /unet/code/uNet_3d.py | 6b64d2bb803db6f0e1e0835da9fa5fc2f046f1aa | [] | no_license | BarryccXu/Unet-for-Biomedical-image-segmentation | 70e64bb39d32ddc2cad493b3bb1e0fcccd6c26c0 | 50ed21743764d06372f7948e0009ac200cc59bc0 | refs/heads/master | 2020-03-09T14:51:57.677821 | 2018-07-03T20:37:07 | 2018-07-03T20:37:07 | 128,845,403 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,489 | py | uNet_3d.py | # os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import os
import numpy as np
from keras.models import *
from keras.layers import Input, concatenate, Conv3D, MaxPooling3D, UpSampling3D, Dropout
from keras.optimizers import *
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard
from keras import bac... |