blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bed8fdd79205932c1f16505cfd9077aa45156f68 | 2d9a17e2b896d2f6a90913a4ba02d41f0ede5dd0 | /_58job/page_store.py | ab4764e39b62286c71dc816045dbe148722d6785 | [] | no_license | wolfwhoami/xxxxx | 1cf2ed2c8ed78048d87cccf2953ca86c0871a783 | 670787ec71127bc05c1645cc3d8ef7c3a91fe84b | refs/heads/master | 2020-03-30T00:44:55.864817 | 2016-12-16T01:45:03 | 2016-12-16T01:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
from spider.ipin.savedb import PageStoreBase
from spider.runtime import Log
from spider.util import htmlfind
from spider.util import TimeHandler
import spider
import time
import re
class Jd58PageStore(PageStoreBase):
def __init__(self):
super(Jd58PageStore, sel... | [
"jianghao@ipin.com"
] | jianghao@ipin.com |
1c3803d5dbc897cd9558e917667e0a262d021045 | 7cd283590c0bf5cd76394969948ac5fc7cc717d4 | /biblioGest/settings.py | d872f5560bcad2d67c24699d28aec1486c8c6aa6 | [] | no_license | vhsreturns/bibliogest | f95fca7fcda6c81521d1c96c5557c1c75a1ce726 | 9c9e3b64b3435162395da307382c206cc059a6d3 | refs/heads/master | 2020-03-22T20:44:21.391213 | 2018-07-11T21:25:22 | 2018-07-11T21:25:22 | 140,627,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | """
Django settings for biblioGest project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"manuel.humanescabrera@gmail.com"
] | manuel.humanescabrera@gmail.com |
fd7b7ddd03394c9ab63bba77aeff6549fdb9d0bc | cd971dd65f2684682a1f6e9d198b1b650e08181a | /Server/MessageParser.py | 4ca261b75c8e1c0482eec62dd2316a11b1bea26a | [] | no_license | noamg97/ResearchProject | 1b24eaf213b5fd5bc312861c6863f503daf68aa8 | c57d349c426665fad12a188a27e0c572d2fac31d | refs/heads/master | 2021-03-12T22:31:42.018206 | 2015-01-26T22:43:49 | 2015-01-26T22:43:49 | 21,600,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,486 | py | from OpCodes import *
db = None
users_sockets = []
def init(_db, _users_sockets):
global db, users_sockets
db = _db
users_sockets = _users_sockets
#TODO: validate all the variables that are received from user
def parse(msg, username):
if msg[:num_char] == user_state_changed:
... | [
"noamg97@gmail.com"
] | noamg97@gmail.com |
7f976f5b8142c14de1f5a2d2cbea50a1fe36c512 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_sync_token_async.py | 9d2441dc438ea9e84f222b0768eefed6c3454998 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,236 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | [
"noreply@github.com"
] | noreply@github.com |
b5886d532cad889faed1c4b86e4e617731f1e256 | 7b33b61ee640a0813d69c17346b41ce9216bde36 | /venv/Scripts/alembic-script.py | e9482c6d084ec24dbd0439d06767aba18aa6148c | [] | no_license | Mayank0010/Contact_Form | 630e2085553ab37445fa7e161fbc1498728691c3 | 27ea044fdc6aa24f2c47360ab6b0c20ad230bd3b | refs/heads/main | 2023-03-22T13:28:02.882800 | 2021-03-14T18:09:55 | 2021-03-14T18:09:55 | 345,152,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #!"c:\users\mayank kumar singh\desktop\contact_form\venv\scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'alembic==1.5.6','console_scripts','alembic'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'alembic==1.5.6'
try:
from importlib.metadata import distribution
except Impor... | [
"kr.mayank.singh@gmail.com"
] | kr.mayank.singh@gmail.com |
79c41c532063cf3e353701cbe49e18bd227a3312 | 6146661de4e644ae9ec55df883f3a16479766486 | /mydatabase/migrations/0004_auto__add_seo_optimizacija.py | 7b29fe45ac1f380d99d74123a0b4736ee45df739 | [] | no_license | zainabladan/Free-Django-Template | 25ecf1bab06c9603aadde8dd4598562a9121eed0 | ba099d16c7e251298f3c4ded472e16ad716b0d80 | refs/heads/master | 2020-03-24T17:29:37.358667 | 2015-01-08T01:11:15 | 2015-01-08T01:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SEO_OPTIMIZACIJA'
db.create_table(u'mydatabase_seo_optimi... | [
"blaz1988@gmail.com"
] | blaz1988@gmail.com |
0948b4ae310c7e9da2787093b25e1f15545eafdd | 8869a0a73aff6895cd826a1aad88e1a350575b85 | /misc/scripts/05-mapbox_upload.py | 0aba10988251913bc3fd84ca32dc25cc3d7e99c9 | [] | no_license | pondrejk/dizzer | 500fe26dc32660b865bad91fa0f1321a7a86da22 | c18e072eebdc607f6d3ec5938c9846910e8d179c | refs/heads/master | 2023-08-31T02:44:38.771194 | 2021-10-14T19:39:07 | 2021-10-14T19:39:07 | 120,441,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/bin/python3
'''
Uploading json data to Mapbox
Token must be set in environment
export MAPBOX_ACCESS_TOKEN="pk.YOUR_ACCESS_TOKEN"
'''
import argparse
import os
import time
import glob
from concurrent import futures
from mapbox import Uploader
from time import sleep
# parse arguments
parser = argparse.ArgumentParse... | [
"pondrejk@redhat.com"
] | pondrejk@redhat.com |
7a0fa4194830d4ae22f4b0a727ae929deed45f70 | 6fb93f19907d316b29e4958d518011c756709f4a | /docs/conf.py | e41af191c285c6bab365cbe6a8bd31a6a8dfe8dd | [
"MIT"
] | permissive | maplewen4/Kubo_Demo | 6bbca648017d8a36e6e4424e807b1744e8947a51 | cff2cd7fb704d0fb7b25bd0e4d10b1e88c12dcbe | refs/heads/master | 2020-11-25T14:27:28.538446 | 2019-12-18T00:09:26 | 2019-12-18T00:09:26 | 228,715,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,325 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"maplewen4@gmail.com"
] | maplewen4@gmail.com |
b48c0e6f402cf036746dd9bedc2f16bb2edb1917 | cb9a67787d5c65ba64defa230d236477f6e5c4ae | /0x04-python-more_data_structures/101-square_matrix_map.py | 084d959f17cad5be0fc7baeb4cacc5bedffd3981 | [] | no_license | Christabel951/alx-higher_level_programming | f26cc28dc1d7dedf5ddb7235a1b2cdd0cb3d97ca | 27f76e423d13237ddd14363847f92d0c229ca06b | refs/heads/main | 2023-09-03T07:08:53.163283 | 2021-11-19T01:49:38 | 2021-11-19T01:49:38 | 403,781,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #!/usr/bin/python3
def square_matrix_map(matrix=[]):
return list(map(lambda i: list(map(lambda j: j ** 2, i)), matrix))
| [
"crkomo@gmail.com"
] | crkomo@gmail.com |
9e324c68cdb2ba2b6ab9ff3d81f154edf35182cb | a2c7cca7692df98e93ca276c8133d838cae76c6c | /autostock_script.py | 902584eb2f3128c6db10440a884f8b755bfa9d0e | [] | no_license | itsmuzzle/LKQ-Dashboard-Exporter | 969c736403a26e701e2f90071a441d62d71442b3 | ba56487a3067830c132137a0d4b423fb28a2cca0 | refs/heads/master | 2020-05-18T15:07:12.826528 | 2019-05-01T22:26:47 | 2019-05-01T22:26:47 | 184,489,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from selenium.webdriver.common.keys import Keys
from selenium import webdriver
import credentials
import requests
import time
# Dashboard properties
dashboard_login_url = credentials.login['dashboard_login_url']
dashboard_search_url = credentials.login['dashboard_search_url']
dashboard_username = credentials.login['da... | [
"89t0asty@gmail.com"
] | 89t0asty@gmail.com |
f16414d6757f76e3f3127e9cb22d944b90774b0f | c0da8d95836c661ab5ce4ef62837650c4402b8d2 | /pull_data.py | 8fda0031df6876afedec172d0c77c28c2da176ad | [] | no_license | wuwentian/encrypted_traffic | ca3e74cd2b71ed07e4a565a24d81f49a180bddb1 | 3e464328183d750b188bd54a02ad0d1c58d4704c | refs/heads/master | 2020-09-29T08:46:07.056972 | 2019-12-10T01:35:06 | 2019-12-10T01:35:06 | 227,003,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,383 | py | '''
*
* Copyright (c) 2016 Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this ... | [
"root@dgx-gpu-1.ai"
] | root@dgx-gpu-1.ai |
5cf3f4cd9f1a9c51c8b2da485c1e7bb561a7d943 | 59d5bcd552663e0f66d46920486cb3ddf1f543a9 | /comic_scraper/comic_scraper/middlewares.py | 73e718b8ea3111128083a2fe1c22283c10608ad4 | [] | no_license | kalbers33/webcomicbot | e82e46fdef5711b374c5e707802ecc943b60d533 | 0ba78cf40af5d025d2b4644fa772cca5777fba41 | refs/heads/master | 2020-07-01T12:45:17.085591 | 2019-05-27T21:52:32 | 2019-05-27T21:52:32 | 201,179,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ComicScraperSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# sc... | [
"kalbers33@gmail.com"
] | kalbers33@gmail.com |
8bb1441d28ef0efd6e85f47948d918493bee10f1 | 39a2783aad61a2e8d7e1263477a50d3e2abb0b6d | /anju_pro/__init__.py | 1c9e58f6107c10e3fc4e1b9cea7f7681ca5eab13 | [] | no_license | Big-data-spider/anju | e0eb87699c9af21cafd07e50967b7a3bf9cc5fb9 | b3e2eb97da05db85aaf24d1314ad7cef233e7f89 | refs/heads/master | 2020-03-21T07:32:45.179212 | 2018-08-02T10:03:27 | 2018-08-02T10:03:27 | 138,286,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | '__auther__' == 'STC' | [
"stc214@qq.com"
] | stc214@qq.com |
61ffe08a041bf9ab8125c750c6710d2416c6f292 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/mpls_state/ldp/statistics/ldp_protocol_stats_instance_since_clear/__init__.py | 9db90b9b03d86d82c89d8808869b01b69cf370e7 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,549 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
91577320a6ad2fab7a30f0640acbdbcf621586e1 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-5.py | 41c46ea0f9f6ec5c12819d5834a5ba585aeda8a2 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 717 | py | from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_enumeration_3_xsd.nistschema_sv_iv_list_nmtoken_enumeration_3 import NistschemaSvIvListNmtokenEnumeration3
from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_enumeration_3_xsd.nistschema_... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ae59f02eab72110000b74d8503fae65c3fc36ecd | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /324. Wiggle Sort II.py | c63081d423ce9f82a653401f08c2dc5fb6ed93ff | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | # Sorting and reoder solution. (92ms)
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
nums.sort()
med = (len(nums) - 1) / 2
nums[::2], nums[1::2] = nums[med::-... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
22f1fd9c5815b2168f7577a779d1d9ad69b3d806 | 4a3fcb3e93ba88ee09d34b190450ad18a3125d67 | /users/api/views.py | f670ba2e11251fea201869c3c1d44238463ef4c9 | [] | no_license | hllustosa/online-judge | 8c14f3348d7eba56126824f1aca6d9ee907e688d | 4340eefc760ee3122e805214af0aa5f1a4f4fd96 | refs/heads/master | 2023-06-20T22:27:17.359455 | 2021-08-09T03:27:55 | 2021-08-09T03:27:55 | 392,495,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from api.models import Profile
from .utils import IsAuthenticatedWith, method_permission_classes, ANY
from django.core.paginator import Paginator
from django.http.response import JsonResponse
from rest_framework_simplejwt.views import TokenObtainPairView
from rest_framework.views import APIView
from django.contrib.auth... | [
"hllustosa@gmail.com"
] | hllustosa@gmail.com |
e9cce5f73136be901491178d96b79d30a3cb9135 | 61b4126af2563e5be0988fd7cba7b62929d3c8b8 | /20171114_assignment3/20171114_part2/Refactored/tests/test_color.py | e7905fc2a6985b9c924847d3efcd319136b8bd58 | [] | no_license | batra98/Mario_Testing | 6ac285a836123c161226a79fb7bff8f68279eb3f | e7e6df41ec432d8302b2cd2c286565218e4ab1ba | refs/heads/master | 2020-04-15T16:28:36.287346 | 2019-01-09T10:10:40 | 2019-01-09T10:10:40 | 164,838,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import os
import sys
import pytest
from importlib import reload
if 'tests' in os.getcwd():
sys.path.insert(0, os.path.join(os.getcwd(), '../'))
elif 'Refactored' not in os.getcwd():
sys.path.insert(0, os.path.join(os.getcwd(), './Refactored/'))
import color
class Test_color:
def test_color(self):
asser... | [
"batragaurav2616@gmail.com"
] | batragaurav2616@gmail.com |
30a361a083b45414901e3b65a190c5e58053705b | 45669b92b05526f620359cb16e99129a92cb9787 | /server-app/NeighborhoodWatch/settings.py | 7136b479ded2fa413951c85c3fc52bc7826cb99e | [] | no_license | sero-dev/neighborhood-watch | 649822ee231ee40501af7d6ce0a1fdc5712a56c2 | c0291100f120c1255ecfd576aacc92206dfeae25 | refs/heads/master | 2022-12-18T14:54:34.551038 | 2020-09-27T14:00:04 | 2020-09-27T14:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | """
Django settings for NeighborhoodWatch project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"sean.rodriguez@outlook.com"
] | sean.rodriguez@outlook.com |
4ef86b545a9342af06c85b513dc096503beae90a | 47b1833510a24fd3dff6598899410b8e448c38d1 | /dividir.py | da2680c934baf094bfb2de863fccdbee48d24f9f | [] | no_license | francinald0/diversas | cd3749015df6bca97e918b2a99086a3c1a2abd14 | 060d12ceeac42fbf72d8478f18a8122a057ae95c | refs/heads/main | 2023-08-12T04:35:04.709723 | 2021-10-03T02:07:50 | 2021-10-03T02:07:50 | 310,326,466 | 0 | 0 | null | 2021-10-03T02:45:57 | 2020-11-05T14:36:34 | Python | UTF-8 | Python | false | false | 11,077 | py | #biblioteca para leitura do arquivo .pdf
from PyPDF2 import PdfFileReader
#biblioteca para modificação do arquivo .pdf
from PyPDF2 import PdfFileWriter
from pathlib import Path
import os
#---lista de funções---
#def nameFirstHalf(file):
#def nameSecondHalf(file):
#def cutFile(inputFile):
#def dividirArqui... | [
"noreply@github.com"
] | noreply@github.com |
d683917dd0c10a923d5b867d6ffe64100139f261 | b4e1da07f3679ee49475728b38ea3450a9b79ee8 | /tests/test_lc_gen.py | f32493420b3f6ec8b5ad9bd322427d0c8b008ee2 | [] | no_license | flyingleafe/link-cut-tree | 463ac91218aa89c0cb0b85ea06813415f9f31e81 | 50d912108176304e33a49defd589127ea33b6220 | refs/heads/master | 2021-05-11T13:44:05.857261 | 2018-11-01T19:47:03 | 2018-11-01T19:47:03 | 117,685,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | import sys
import os
import numpy as np
from random import randint
from random import sample
INF = 999999
def write_line(f, x):
s = str(x) + '\n'
f.write(s)
fname = sys.argv[1]
n = int(sys.argv[2])
m = int(sys.argv[3])
inp = open(fname + '.in', 'w')
out = open(fname + '.out', 'w')
write_line(inp, n)
vals ... | [
"flyingleafe@gmail.com"
] | flyingleafe@gmail.com |
0637515c84350843070ea85d41e0c80b1ecac7f2 | bbbd62561fe3fddbd3c77b3f457355aaa43e7851 | /StudentEngines/jak3122/myStack.py | 5b1fa6ae494cb4cca67baf2f4f114b00d1acba4a | [] | no_license | jak3122/Quoridor | 18a459fa18ccc663250ccd177cabf7a7123252e5 | dafb54987a7ccd2759ce4560d2529b5f7371b4fa | refs/heads/master | 2016-09-05T14:08:49.498839 | 2013-01-23T02:17:49 | 2013-01-23T02:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | """
file: stack.py
language: python2/3
author: Sean Strout
description: A linked node implementation of a stack
"""
from .myNode import *
class Stack:
__slots__ = ( "top" )
def __init__(self):
self.top = EmptyListNode() # the top node in the stack
def push(element, stack)... | [
"hyzer.jak@gmail.com"
] | hyzer.jak@gmail.com |
87e8cf9804f7975bc2d99c8572cd7d15d160c360 | 21267aa3c87a7fea80fb79b129d2da1628f6bc81 | /cnn_dcn.py | 4dfe4d93c688b4a54c04c33d6ea385a42cb1bbb9 | [] | no_license | happyxuwork/- | 47fff3c8319ede3ee7b4f7021e0d3219896e3551 | f3c9a74a740c0874ecbb38a291b2249e82322366 | refs/heads/master | 2020-06-02T20:45:34.286428 | 2019-05-07T14:44:55 | 2019-05-07T14:44:55 | 86,070,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | from __future__ import absolute_import, division
import torch
import torch.nn.functional as F
import torch.nn as nn
from torch_deform_conv.layers import ConvOffset2D
class ConvNet(nn.Module):
def __init__(self):
super(ConvNet, self).__init__()
# conv11
self.conv11 = nn.Conv2d(... | [
"noreply@github.com"
] | noreply@github.com |
a155b79c1a33bd7650a4e79b9ce0bd0d7bebb71d | d7e03c4b499d176dc8a524e14b4806ded69c100c | /faotools/FAOTools.py | 7d5aa845139242929b48df0a74e4cfd3ca2bf85f | [] | no_license | Pacopag/faolyzer | 036f76ff6e7d4580d38d16796c60ff4a0b1a54c5 | 7f708e2d1a7c75b96e950eea5f4e6283117f87e3 | refs/heads/master | 2021-01-23T07:03:50.577482 | 2013-08-15T01:56:34 | 2013-08-15T01:56:34 | 12,098,096 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,498 | py | from __future__ import division #ensures division as double
from pymongo import Connection
def get_land_used_for_production(year,country_code,item_code,quantity,flag=[]):
"""
Given a year, country code, and trade item code, and quantity of that item, return the land area
used to produce that quantity in the given ... | [
"chris.pagnutti@gmail.com"
] | chris.pagnutti@gmail.com |
74a24c2a8ac44625130847009d45e50976a7bebd | 8ef96160197ccd382328a54893c3f07d53db3774 | /setup.py | 9e2d39086985a67a4106c37876c5aafdb8ca20cd | [] | no_license | derekdreery/py3status | c74bd6980d2b1d2517788d169b1f7a64ab26bcf6 | cecf61d7cc8cc2a056de699e1d2216c20ad486ec | refs/heads/master | 2020-12-03T09:21:01.623187 | 2015-10-11T14:55:57 | 2015-10-11T14:55:57 | 44,056,390 | 0 | 1 | null | 2015-10-11T14:57:07 | 2015-10-11T14:57:06 | null | UTF-8 | Python | false | false | 1,513 | py | """
py3status
"""
import os
from setuptools import find_packages, setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | [
"ultrabug@gentoo.org"
] | ultrabug@gentoo.org |
7dc4983c30c707604da22c0935d8a156f400a0e1 | 8e4887e07aec84ef82271dd501d84f150df5b790 | /code/generate_GOP_PA.py | c498432d53f31216da8c3d9f9c5cbd9c57ca1c56 | [] | no_license | teddyterminal/gerrychain-proposal-analysis | 25a8be0927287a10d29f14dd97022c2ed7358629 | 0e39dbc1716252d6e7ac9e4a2c75dcca942df55c | refs/heads/master | 2020-06-22T20:26:22.573966 | 2019-08-26T18:40:44 | 2019-08-26T18:40:44 | 198,390,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,189 | py | import gerrychain
import functools
import numpy as np
import pandas as pd
import tqdm
import scipy.stats as ss
import sklearn as skl
from gerrychain import Graph, Partition, Election, GeographicPartition
from gerrychain.updaters import Tally, cut_edges
from gerrychain import MarkovChain
from gerrychain.constraints im... | [
"rishabh@Rishabhs-MacBook-Pro.local"
] | rishabh@Rishabhs-MacBook-Pro.local |
2420bb9e1eda999e3964c83002eca57165520b1f | d741ba9357b0399ed66191a58a068afc9915692d | /pos_tagging/src/read_file.py | 65d122f901d8a2084f336b67d3ab4a4c4c5fcc9d | [] | no_license | lefreire/info_retrieval | 4975961bc47ec54183b21d2c3e8f7999c787d40e | a61c6db4ac963c6ba25d7fec267b07af78a107ca | refs/heads/master | 2022-12-09T01:16:39.783151 | 2020-09-01T01:12:18 | 2020-09-01T01:12:18 | 283,301,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | import logging
import numpy as np
from sklearn.model_selection import KFold
from sklearn.model_selection import train_test_split
class ReadWriteFile:
def __init__(self):
"""
Constructor
"""
logging.basicConfig(level=logging.INFO)
def read_file(self, file_path):
"""
Reading file in fi... | [
"letfreirefigueiredo@gmail.com"
] | letfreirefigueiredo@gmail.com |
87a8e58275794c7a3195b537a5cc332b338d0ded | dffb1f09530317095aa8e3cacca2b0133602172a | /utils/dist.py | a72fb30a849d250ba92ae2a2a0c6afd406e3b46e | [
"Apache-2.0"
] | permissive | apeabody/gdistcc | dc5d6241d5c1e680760e357f1c372d5e951174d0 | ae51cd1aa1195a6a7e7c04dfed747bb39e092d1f | refs/heads/master | 2021-04-15T03:35:59.989247 | 2016-06-23T00:47:31 | 2016-06-23T00:47:31 | 60,889,387 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | #!/usr/bin/env python
# dist.py - Identify Linux Distro
#
# Copyright 2016 Andrew Peabody. 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/l... | [
"apeabody@gmail.com"
] | apeabody@gmail.com |
3241e36296a797bb32de7bade4cf408a1666a17b | f307e8aa577655ae90a2f73208330f63e1182965 | /other_ideas.py | f1e725637746d3046c66e1498647d779fb9ce108 | [] | no_license | mumu/cube_finder | a4812c68cc2d52957904f9d631d6c15673c92a3a | f3ef51426a41b87583e871404d6af083b8aef3cb | refs/heads/master | 2020-12-10T22:45:17.051136 | 2016-12-05T06:13:46 | 2016-12-05T06:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,159 | py | import cv2, sys, time, random
import numpy as np
import math
from sklearn.cluster import MiniBatchKMeans
from skimage.segmentation import slic
from skimage import io
# http://www.pyimagesearch.com/2015/04/06/zero-parameter-automatic-canny-edge-detection-with-python-and-opencv/
def auto_canny(image, sigma=0.33):
# ... | [
"ascott@hmc.edu"
] | ascott@hmc.edu |
50f5aad9b3a42dfea3d6b7b361068fcad4be6839 | 192b7e49e60ea04e97208ab4062ac7af904acd44 | /flask/app/main.py | 2fcae5d2e943e6812412af27df15cc9df0c93de8 | [] | no_license | seakmengc/cnn-image-classification | 1e42f9e482c868908c0393001199f2cdb203e338 | bea89b18447665401b0fddc369f3bc5bd7ee87d9 | refs/heads/main | 2023-08-01T05:16:38.455856 | 2021-09-24T16:11:04 | 2021-09-24T16:11:04 | 401,121,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from flask import Flask, request, jsonify
from torch_utils import transform_image, get_prediction
app = Flask(__name__)
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
def allowed_file(filename):
# xxx.png
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
@app.route('/predict... | [
"c.seakmeng0603@gmail.com"
] | c.seakmeng0603@gmail.com |
2b60f88f7128b020f21fa8e9351b9fb82c26385d | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/gensim/corpora/lowcorpus.py | e293c998a14d288506947a9fd241acf64a343952 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 7,100 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Corpus in GibbsLda++ format of List-Of-Words.
"""
from __future__ import with_statement
import logging
from gensim import utils
... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
d95b85d157c5e47a6a21e27eabf4525b5afea52e | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/Test_Campaign_2021/scripts/python/Page/extract_images.py | 3b80f87b21db865b5932d0164080417339bd2fe7 | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,915 | py | # import json
# import re
# import os
# import sys
# import requests
# import pytesseract
# # import cv2
# from urllib.parse import urlparse
#
# from bs4 import BeautifulSoup
# from selenium.webdriver.support.wait import WebDriverWait
#
# from Test_Campaign_2021.scripts.python.Util_Data import ReadConfig
#
#
# class ex... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
f089bbc45dcc07a87ffe5f88eff17e96d474e1a7 | a34272af011a08ba255f7e908423dae2ac6ecbb9 | /src/enums/token_type.py | 496f3af2aba40cfe55c2d691df5dd372f53e1cc8 | [] | no_license | CoderK/simple-interperter-language-study | 2fa3bf04854cc6ffa7ec78dcc057d9586f119054 | 7e4968eb67aa636d33ecc8dc54b18de29e2dfeb1 | refs/heads/master | 2021-01-13T16:04:10.476705 | 2017-01-07T10:33:51 | 2017-01-07T10:33:51 | 76,764,210 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from enum import Enum
class TokenType(Enum):
IDENTIFIER = 0,
NUMBER = 1,
MINUS = 2,
PLUS = 3,
MULTIPLY = 4
DIVISION = 5,
MOD = 6,
POWER = 7,
L_PAREN = 8,
R_PAREN = 9,
COMMA = 10,
CALL = 11,
FUNCTION = 12,
ASSIGN = 13,
END = 14
| [
"jeokrang@hanmail.net"
] | jeokrang@hanmail.net |
daf5f4f3813ecc08cd6a129e3d7837d01f694731 | 67827e1b58898eb261e0552288ca844ad54e800d | /FanFast.py | ef934bfa644c62eee825c55e1b72409be3c2de7a | [] | no_license | mbutkereit/Speech-to-RIOT | 938aca104a17bf5f0c71efdfa96403c3821f37df | fbb205025a9e811f445aca4ea8555657601486e2 | refs/heads/master | 2021-01-22T12:25:56.789968 | 2017-05-29T09:35:00 | 2017-05-29T09:35:00 | 92,725,459 | 0 | 0 | null | 2017-05-29T09:30:03 | 2017-05-29T09:30:03 | null | UTF-8 | Python | false | false | 392 | py | import re
import setFan
import json
WORDS = ["FAN", "FAST"]
file = open("hostnamesFans.json")
for line in file:
content = json.loads(line)
hostname = content["fans"]
def handle(text, mic, profile):
setFan.setFan(hostname, 0, "FAST")
mic.say("Okay, I am turning the fan to a fast frequency")
def isV... | [
"arnemt@web.de"
] | arnemt@web.de |
6c470d79e3d96a4854aec735c4058b4423218ec8 | 9f5509aea6fe3808f6a7f5ec876e8fc5e19df7f6 | /sdk_test.py | 8a055d819b551a7381df9173b561ba1356402951 | [
"MIT"
] | permissive | zebra-kangaroo/petulant-turtle | 7fddfb85cb5646ce25c220bf1b02f33ee60b27b7 | 83119e09460fc0de858466ad3cd69206ab1f502f | refs/heads/master | 2020-05-22T13:07:53.673917 | 2015-07-29T19:57:27 | 2015-07-29T19:57:27 | 39,913,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | from wepay import WePay
# CLIENT_ID of your app
CLIENT_ID = ''
# CLIENT_SECRET of your app
CLIENT_SECRET = ''
# Production, Stage, Stage-internal, VM
TARGET_ENVIRONMENT = 'Production'
# ACCESS_TOKEN of your app
ACCESS_TOKEN = ''
# ACCOUNT_ID of your app
ACCOUNT_ID = ''
# Internal calls, set to to True for making... | [
"sankate@wepay.com"
] | sankate@wepay.com |
9b3313edbcd0fb8a462b7c1e8f8fbf9fd7a9714c | b8c1ffa5c522907e5f935f317b0638d51e2fbf90 | /Movielens_user_clustering_fuzzy_cmeans.py | e4f1d00422a67a38c767072b0a5869558e6597da | [] | no_license | Vijeta141/Major-Project-2 | f2d7d94896081e246d8f12d058935f7da3f6be8c | 2883f5edcc0a3e9bd1ccebb03584562c2520a3ed | refs/heads/master | 2020-03-09T00:40:56.029431 | 2018-04-28T14:09:14 | 2018-04-28T14:09:14 | 128,494,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | import numpy as np
import time
import pickle
import skfuzzy as fuzz
from movielens import *
from sklearn.metrics import mean_squared_error
user = []
item = []
rating = []
rating_test = []
n_users = 0
n_items = 0
# Load the movie lens dataset into arrays
def load_data():
global user
global item
global rat... | [
"shivaniszw_bt2k14@dtu.ac.in"
] | shivaniszw_bt2k14@dtu.ac.in |
2bbf02dd3f34c138ac35839901ab09c232b7628c | 0d86e9198b210c44190e265d723514b25c5554d2 | /api_exercise/exercise.py | e8f4356f2ca73fb12f999a5c49709ced989acc8f | [] | no_license | velivelinov/NextTechGirls | b076a4d1196a9907117f99e83c7600d31addd37e | 19db6d6a4f80a7f2796d88aafc1c4eb9bf20cb5b | refs/heads/master | 2021-09-10T02:24:18.949268 | 2018-03-20T17:55:28 | 2018-03-20T17:55:28 | 126,000,891 | 1 | 0 | null | 2018-03-20T11:10:09 | 2018-03-20T10:32:34 | Python | UTF-8 | Python | false | false | 596 | py | import api_functions
# Ask the user for input for what city to search for
city =
response_data = api_functions.make_request(city)
# Ask the user for what information they'd like to find out
print('Would you like to find out: ')
print('1. Information about the city')
print('2. Coordinates of the city')
print('3. The ... | [
"vevelinov@hotels.com"
] | vevelinov@hotels.com |
b9063f096b96d5a75a310bc8ea0a8636adf03b5a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /BHBXNfeMsA43d8Tys_22.py | a4efdfcb90caae2db151d39c9a348261e7d74a67 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | """
As far as we currently know, approximations for the mathematical constant
**pi** (π) in the history of mathematics started surfacing with Ancient
Babylonians, who found its correct truncation up to 1 decimal place. During
the 5th century, the Chinese mathematician Zu Chongzhi raised it to 7 decimal
places and fr... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
483eaaf3e8360889b820857d67b3220540563387 | 0e06df5e10ebfd5d508afa7848b645fb0f9aa503 | /image_track.py | 57e88dc27b7c5549922e36733ea2ae401b8178c7 | [] | no_license | jrome5/Husky-Code | 47c4a5cecec8c402718177c84e8c9d442dfb1df6 | 8b89b56c801a20b7943491fdee7e24fd10398b59 | refs/heads/master | 2020-04-13T21:31:31.991570 | 2018-12-28T23:52:22 | 2018-12-28T23:52:22 | 163,458,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,105 | py | #!/usr/bin/env python
import roslib
#roslib.load_manifest('stereo_color_tracker')
import sys
import rospy
import cv2
import numpy as np
from std_msgs.msg import String, Header
from sensor_msgs.msg import Image
from geometry_msgs.msg import PointStamped, Point
from cv_bridge import CvBridge, CvBridgeError
# import IPyth... | [
"noreply@github.com"
] | noreply@github.com |
92f6925b2a9cfb31a62f32e59f35f03425e5c4ee | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/io/matlab/tests/test_mio.py | a2fff9f37f188018118bed9ef6dc4f9d6725e5b8 | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8ddd2d36df500761f2d9af0be22308dd2450ebd281c3b0e945bc89b26ebb413d
size 42136
| [
"sumitkutty37@gmail.com"
] | sumitkutty37@gmail.com |
ca0e505b915d355eece8230b7ee141a50d9ecacc | 18dde3388c5258659393207a5afab1eb8f7483ab | /Day_6/zad_1.py | 2dfed925f18221bc9a1f6e09b29e39b4ad64d664 | [] | no_license | msiemieniukmorawski/python | a3e9e8eda90ddf5981962e66d849b43dcb77d2c3 | 13c65d21754d894ab1342627be61794e9e29763f | refs/heads/master | 2020-03-28T16:13:19.226610 | 2018-11-11T22:37:44 | 2018-11-11T22:37:44 | 148,665,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # Zlicz wszystkie wystąpienia liter w stringu "tekst"
tekst = (
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
"sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
) | [
"msiemieniukmorawski@gmail.com"
] | msiemieniukmorawski@gmail.com |
63c07cb2b9abb703e51ca131751cea808ad20a08 | 8e26d8a217003728e6ad8082009cc367c920aef4 | /ryan_project/polls/models.py | e255587c550a8530ee32a39b0410a406358a6292 | [] | no_license | ryan-vong/ryan_django | 2f3ebaf64806ac69f00890a69f7ef5a7a36ffb4b | 5d6ae854c84edcd919d881553dceba1510932981 | refs/heads/master | 2020-05-20T01:18:09.414735 | 2019-05-07T02:33:05 | 2019-05-07T02:33:05 | 185,306,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def was_published_recently(self):
now = timezone.now()
return now - datetime.tim... | [
"ryan.vong88@gmail.com"
] | ryan.vong88@gmail.com |
72fb6a38c5f5d698ef3de0e95fd431195f0c6c1c | 4522fc52bc43654aadd30421a75bae00a09044f0 | /riley/dev.py | 1c924685ce9976e08ff5b678bf63dcb402aa2ce4 | [] | no_license | qesoalpe/anelys | 1edb8201aa80fedf0316db973da3a58b67070fca | cfccaa1bf5175827794da451a9408a26cd97599d | refs/heads/master | 2020-04-07T22:39:35.344954 | 2018-11-25T05:23:21 | 2018-11-25T05:23:21 | 158,779,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | from dict import Dict as dict
import os
import os.path
from isodate import datetime_isoformat
from datetime import datetime
from pathlib import Path
path_root = Path(r'/home/picazo/anelys')
if os.path.sep != '/':
os.path.sep = '/'
from katherine import d6
def get_datetime(timestamp):
return datetime_isofor... | [
"qesoalpe@gmail.com"
] | qesoalpe@gmail.com |
26772736bdf082f38dd3107781a34151c0e314de | 16cb24621f0935ad25589584ac960979ce95bcfa | /synth.py | 01e6e38ba9a56b04438a856214f9a0cb0b609c51 | [
"Apache-2.0"
] | permissive | Phaneendhr/dialogflow-python-client-v2 | 8a1851214579ebd8f0a29ef193297a3e43d85641 | 8c9c8709222efe427b76c9c8fcc04a0c4a0760b5 | refs/heads/master | 2020-05-19T01:34:19.044642 | 2018-12-18T23:44:33 | 2018-12-18T23:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
b00ed5b05858e40a58a02521f0e18f41ce5fa08c | abdc9c72f2afc04bb8aedc7245837a5eb0febd6a | /scripts/led_controle.py | aa7400ae18c1e0fca90a57abcfd9e408e01c531c | [
"MIT"
] | permissive | TomiyaMorita/robosys | 90fb5454ce52c405cfed7d0c4ab3691c6c75a374 | 70dc21fd6db3f6853e7bdadb99cfff954697df99 | refs/heads/master | 2020-04-16T18:41:44.460028 | 2019-02-05T15:51:54 | 2019-02-05T15:51:54 | 165,830,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python
import RPi.GPIO as GPIO
import rospy
import std_msgs.msg
GPIO.setmode(GPIO.BOARD)
gpio_list=[13,15,16,18,22]
for i in range(5):
GPIO.setup(gpio_list[i], GPIO.OUT)
def callback(data, id):
rospy.loginfo("[ID:"+str(id)+"] : " + str(data.data))
if(data.data==1):
GPIO.output(gpio_list[id-... | [
"noreply@github.com"
] | noreply@github.com |
d6138c99a587bcfea289cfd39bd8931723725038 | e2a142562ab3f322aedc75d613e6ccd72c00f942 | /users/migrations/0002_user_is_staff.py | 064721d104529e3a4714e94a32fe65b9370a7ad4 | [] | no_license | pavanasrivinaya/Todobackedserver_django | 5f8da0cfec35e53cd37d4a69265e0108c10291d6 | ffdf71c248ef72805136ea0cb2805300cf0226c2 | refs/heads/main | 2023-01-27T15:09:46.208059 | 2020-12-06T17:34:14 | 2020-12-06T17:34:14 | 318,553,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.1.4 on 2020-12-04 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_staff',
field... | [
"pavanasri.nyros@gmail.com"
] | pavanasri.nyros@gmail.com |
432c01b9bc0749e080f5030723946eea795b05b6 | eeade223e39130cac09fb4907da6410101af5935 | /setup.py | 3e74c7d16553cc22209fc859a2c55f4468a03da1 | [] | no_license | TrendingTechnology/jaxfg | 67cac95f7e37c2eac75574fa8473b89cc222137e | 7f19668b344944be196e6b61fdc36f1441bac819 | refs/heads/master | 2023-06-20T17:20:43.928788 | 2021-07-30T23:24:42 | 2021-07-31T00:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from setuptools import find_packages, setup
setup(
name="jaxfg",
version="0.0",
description="Factor graphs in Jax",
url="http://github.com/brentyi/jaxfg",
author="brentyi",
author_email="brentyi@berkeley.edu",
license="BSD",
packages=find_packages(),
package_data={"jaxfg": ["py.type... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
ef3444dcd2128c8682185a7fb5f36cc1e1f4760d | 7620709ca64ef49b4fe4721296e4c95a31cb2bb9 | /import_requests1.py | 7472aa177dfc9f81245942da8970e487a7d584de | [] | no_license | simma1/coder-course | aefefa59a18263dc42101db764b98a2faae476c5 | 326931d6cfd63946ed2465bad5ea6af10719fc81 | refs/heads/master | 2022-04-17T10:10:16.079243 | 2020-04-16T06:22:41 | 2020-04-16T06:22:41 | 256,127,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import requests, bs4
for counter in range (1900,2000):
res = requests.get('https://cineplex.com.au/movie/' + str(counter))
res.raise_for_status()
soup = bs4.BeautifulSoup(res.text, 'html.parser')
body = soup.body
try:
h2 = body.select(".movie-header > h2")[0]
h2str = str(h2)[4:-5]
except Exception as e... | [
"spi591@icloud.com"
] | spi591@icloud.com |
2451845e748f9377ad8a74317dffb70d9e17c562 | 4d6f41419c51018ecc76ec0e959686980dcd90a5 | /Teacher/models.py | dd1980e73ef0a0ce3dbb17fabfec69509f8db221 | [] | no_license | TangyeWeisuo/SoftwareEngineering | c200a56be6f0e98afa5e195e5657343df83245f3 | 1fa02a155148bc4173abafa494e665e20fa32e78 | refs/heads/master | 2021-01-18T09:15:31.843868 | 2015-12-25T16:07:23 | 2015-12-25T16:07:23 | 43,533,462 | 1 | 4 | null | 2015-12-25T10:29:20 | 2015-10-02T03:04:39 | Python | UTF-8 | Python | false | false | 844 | py | # -*- coding: cp936 -*-
from django.db import models
# Create your models here.
class Lab(models.Model):
# The model of laboratory.
name = models.CharField(max_length=20)
introduction = models.TextField()
class Teacher(models.Model):
# The model of teacher.
username = models.CharField(max_lengt... | [
"zhaoxihang@outlook.com"
] | zhaoxihang@outlook.com |
ea0247a08d3dbfcc08f7339be1353955119ac626 | f5ef25c84e9b4846f98d520bc9a20d20b3d1b65c | /OOP/oop3.py | e7b6dedf4ec707a9c8abd83d79293c2b25573e9b | [] | no_license | amiraHag/python-basic-course2 | 45757ffdfa677c2accd553330cd2fd825208b0aa | 1fbfd08b34f3993299d869bd55c6267a61dc7810 | refs/heads/main | 2023-03-31T06:48:11.587127 | 2021-03-30T03:43:10 | 2021-03-30T03:43:10 | 327,271,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # --------------------------------------------------------------------
# -- Object Oriented Programming => Instance Attributes and Methods --
# --------------------------------------------------------------------
# Self: Point To Instance Created From Class
# Instance Attributes: Instance Attributes Defined Inside The ... | [
"amira071846@feng.bu.edu.eg"
] | amira071846@feng.bu.edu.eg |
d12232dd22a9c1102cc8b4febd5d24e237ee5226 | 107afe63efb931157c104cf091377a22e2e363c9 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build/config.gypi | 82fa05534d4440ef6db3368044369c047b12cdfe | [
"MIT"
] | permissive | alejandro91dc/buscaminas | be6e1aed6a6be866ded3bc99545685a96b6a5584 | b6745efb8a77f8a8f5fa59d2d8e5d5f85150cd60 | refs/heads/master | 2021-01-10T14:27:25.458720 | 2016-04-14T02:19:53 | 2016-04-14T02:19:53 | 55,897,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,361 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.25",
"host_arch": "x64",
"icu_small": "fal... | [
"diazcarmona.alejandro91@gmail.com"
] | diazcarmona.alejandro91@gmail.com |
4f12be37afae4fbcb6355416aaebcf9fffa74a72 | 368a8bf1834a19bb6b330cdad4caeccd5687185f | /unsupervised_circle_location.py | c85a16cfbec61a11150bc379909ff72e2a851343 | [] | no_license | gr-b/unsupervised_pixelwise_reproduction_loss_poc | 0d2522f7a206ac356b8ee121a73e413e6d2084ad | d7e968c2840f385b6d7776bdf037d7faa0316777 | refs/heads/master | 2020-05-06T15:47:26.053975 | 2019-04-09T15:03:08 | 2019-04-09T15:03:08 | 180,208,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras.layers import Input, Dense, Dropout, Lambda, BatchNormalization, Activation
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.models import load_model
from tensorflow.keras import backend as K
from tensorflow.keras impor... | [
"grbishop@wpi.edu"
] | grbishop@wpi.edu |
043fea3c1e80bfb5060a645f59cc59a63628d802 | 0388c546467c228da8d11e491ddb73f6c73efe64 | /calculator.py | a34c4b64e1dbbce3d0e61e5fb847ce6af68d9e02 | [] | no_license | Rantpel/Batch-Four | 916976d7c874e3092d66372db3216e6cc43eb1c5 | c5792d0975dd85b897b037cb6f69030199f0bf78 | refs/heads/master | 2020-03-28T13:23:01.270264 | 2018-10-14T17:53:18 | 2018-10-14T17:53:18 | 148,390,424 | 0 | 0 | null | 2018-09-11T22:57:04 | 2018-09-11T22:57:04 | null | UTF-8 | Python | false | false | 4,533 | py | #import maths library
import math
#purpose of the program
print("WELCOME TO ALL PURPOSE CALCULATOR")
#programs instructions
print("Select which shape you would want to calculate it value.")
#display shapes
s=int(input("1."+"Rectangle\n2."+"Circle\n3."+"Square\n4."+"Triangle\n5."+"Trapezium\nAns:"))
#use of the ... | [
"noreply@github.com"
] | noreply@github.com |
3da4cb1219d09fd63aaf1bdabad64c368078efb2 | c3d03de240c65c1945f843c8fd0b4d86f3540f75 | /cls2det/model/builder.py | 7040f2ec28d24be252b9ad75650ba2546114b25b | [] | no_license | YuxinZou/cls2det | f9382bbab17f4eeaa62276f6536cb6b590084096 | 381c731ecc2504bf49a3842afda65c75170ba86b | refs/heads/master | 2022-10-17T16:28:17.975053 | 2020-06-11T07:39:06 | 2020-06-11T07:39:06 | 249,424,029 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import torch
from .model import resnet18
def model_builder(cfg):
if cfg.gpu is not None and torch.cuda.is_available():
print('=> use GPU: {}'.format(cfg.gpu))
device = torch.device(f'cuda:{cfg.gpu}')
else:
print('=> use CPU')
device = torch.device('cpu')
print('=> buildin... | [
"zouyux@outlook.com"
] | zouyux@outlook.com |
9a0a32664eb32200ecc56fb66c1444ceee1270a9 | 7dc65b6d2e857c807bd2f75e2586af5f8e933fe5 | /fixtures/vcenter_gateway.py | 1c031b4ea91e3d21c538dd73e06dfdc6d23c41d9 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vkolli/contrail-test-perf | d6fdc20f4a2004066c5a6316afd915ecdc9366c2 | db04b8924a2c330baabe3059788b149d957a7d67 | refs/heads/master | 2021-01-18T15:36:18.120487 | 2017-03-30T19:19:30 | 2017-03-30T19:19:30 | 86,661,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,851 | py | from vcenter import *
from vnc_api.vnc_api import *
from lif_fixture import LogicalInterfaceFixture
from physical_device_fixture import PhysicalDeviceFixture
from pif_fixture import PhysicalInterfaceFixture
from port_fixture import PortFixture
from openstack import OpenstackAuth, OpenstackOrchestrator
from contrailapi... | [
"root@5b3s45.contrail.juniper.net"
] | root@5b3s45.contrail.juniper.net |
41a07c3946ee192f7815792cd8694e18b33b2e57 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracformsplugin/tags/tracforms-0.3/0.11/tracforms/model.py | 417536d95b876557cb23396b175b7c80cc3f8843 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | # -*- coding: utf-8 -*-
from trac.resource import Resource, ResourceNotFound
from api import FormSystem, _
__all__ = ['Form']
class Form(object):
"""Trac resource representation of a TracForms form."""
@staticmethod
def id_is_valid(num):
try:
return 0 < int(num) <= 1L << 31
... | [
"hasienda@7322e99d-02ea-0310-aa39-e9a107903beb"
] | hasienda@7322e99d-02ea-0310-aa39-e9a107903beb |
8af41c09b124f2ec5b82fef8804ae4eefd794aa5 | 4759db9f7e74cec91edbb4c18c553b92913d1695 | /adafruit_atecc/adafruit_atecc_cert_util.py | 415c17ab0cb4833d4b867b6891196d9eb11ca90d | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brentru/Adafruit_CircuitPython_ATECC | 9702e8e06123ab258fee39baf3462640401f9f28 | cceac6431ff28edcf410c53fc2db0c357533d774 | refs/heads/master | 2020-07-27T13:53:31.604065 | 2019-09-17T20:17:00 | 2019-09-17T20:17:00 | 209,113,921 | 1 | 0 | MIT | 2019-09-17T17:15:21 | 2019-09-17T17:15:21 | null | UTF-8 | Python | false | false | 6,488 | py | # Copyright (c) 2018 Arduino SA. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# Thi... | [
"robots199@me.com"
] | robots199@me.com |
a7174edb2714ff5d5cc971dcc12be8543722ecbf | 8a5a98e1bbbc2a6f2b9d29c0124c6d5b5b4ce9af | /functionalprogramming/employemap.py | 2040d6ff00dedcbc5b6f9ad66e2a02759820a564 | [] | no_license | melbinmathew425/universe | acd9c163c66eeaac29db0e670735d283bb358ad8 | b4675ce08c7400f68b9b83592bf945dca4411833 | refs/heads/master | 2023-04-12T18:50:19.989424 | 2021-04-19T10:05:53 | 2021-04-19T10:05:53 | 358,550,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | class Emplo:
def __init__(self,eid,ename,desig,salary):
self.eid=eid
self.ename=ename
self.desig=desig
self.salary=salary
def print_emp(self):
print(self.ename)
b1=Emplo(100,"anu","developer",23000)
b2=Emplo(101,"manu","R&D",25000)
b3=Emplo(102,"maya","manager",21000)
b4=... | [
"kelans995@gmail.com"
] | kelans995@gmail.com |
98897de6751e1925e957dc87ff9bf9135757db2d | 825aca806721b8e639e5d704e43df1f1f74aebd8 | /venv/bin/autopep8 | ed085d54d9bdb0fba08c765a9eaec8a800527ae2 | [] | no_license | eahnivy8/Sparta | 79c5797a2043c7fc82ff9827b6dd37a29ff4e354 | 6d0e99bbeed7088e480dd412cc211d60127964b6 | refs/heads/master | 2022-11-07T07:19:28.858937 | 2020-06-26T04:39:00 | 2020-06-26T04:39:00 | 264,405,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | #!/Users/edwardahn/Desktop/Sparta/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.2','console_scripts','autopep8'
__requires__ = 'autopep8==1.5.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"eahnivy8@gmail.com"
] | eahnivy8@gmail.com | |
4298a183a60a96774b1216ec74482253f0849202 | 11cf2a585243a640d462ad6b075fe99e90e38897 | /.lint.py | 26081d830a1f5278b2eb263ae79a2149ad1dfe42 | [] | no_license | mirjak/draft-deconinck-multipath-quic | 1d8c4bd9498ef2d049ca4624ad28a9b322865c91 | 4975ac93b25981c3e75b00d3175dd0f8b28d0b36 | refs/heads/master | 2023-01-11T18:41:19.407161 | 2020-11-02T19:46:24 | 2020-11-02T19:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | #!/usr/bin/env python3
import sys
import argparse
import re
parser = argparse.ArgumentParser(description='Lint markdown drafts.')
parser.add_argument('files', metavar='file', nargs='+', help='Files to lint')
parser.add_argument('-l', dest='maxLineLength', default=80)
parser.add_argument('-f', dest='maxFigureLineLengt... | [
"quentin.deconinck@uclouvain.be"
] | quentin.deconinck@uclouvain.be |
65b5db19c0c8e94f3a380bfd841c61ac94e5b269 | 8fb898f222110b970ae421b1cf3a1eaa4a674fb4 | /setup.py | 53b72022cc19e408570886c295f4455447cb6aea | [] | no_license | wharton/django-data-tables-tags | 6d6e2abd7be98e8db87aa61571e51d0867ccaa7b | 329911f6ca71c802bda6387eda35c0e11342e787 | refs/heads/main | 2022-06-12T05:48:07.661693 | 2022-05-27T19:23:44 | 2022-05-27T19:23:44 | 242,775,077 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | from setuptools import setup, find_packages
with open("README.md") as f:
long_description = f.read()
setup(
name="django-data-tables-tags",
description="Django template tags for jQuery DataTables.",
long_description=long_description,
long_description_content_type="text/markdown",
aut... | [
"tallen@wharton.upenn.edu"
] | tallen@wharton.upenn.edu |
ffb27003b54e5fba375bc3c719e64f1319dcbffe | 74a19cf9b487c2d88368b7c9af4589d1887a03b2 | /os_tools.py | 549a5991bdbf45ad38409b27d56e7006d7161eba | [] | no_license | foreswearer/gist_music | ced21d78cf9d1402657a7bde53aeb969f07539af | 78905bab9fd2ec32ddada27de32d8f77ad52b65b | refs/heads/master | 2023-04-11T20:44:48.972034 | 2022-04-24T17:09:24 | 2022-04-24T17:09:24 | 469,429,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import os
import shutil
from datetime import datetime
__level = 4
def reset_dir(dir_to_be_reset):
# make the top level directory
try:
shutil.rmtree(dir_to_be_reset)
except OSError:
pass
try:
os.mkdir(dir_to_be_reset)
except OSError:
pass
def log(message, level):
... | [
"ramiro.rego@gmail.com"
] | ramiro.rego@gmail.com |
539fae5682994014bc3638e138e74f8815231a5b | 5659d0fd423497bbf4234ff3e1ee7732e802fc4f | /test.py | 23f0e66c886986bb379a9477666db04655b4a41a | [] | no_license | jefffall/python_test_grocery_list | 1748facb741599b610364228669d6201ab6d1ab2 | b6da3b2c296a505607301b156f1082f5f44c3bff | refs/heads/main | 2022-12-20T23:07:04.585389 | 2020-10-01T19:41:10 | 2020-10-01T19:41:10 | 300,402,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | prices = {'apple': '4.3', 'banana': 4.50}
my_purchase = {
'apple': 1,
'banana': 6}
grocery_bill = sum(float(prices[fruit]) * float(my_purchase[fruit])
for fruit in my_purchase)
print ('I owe the grocer $%.2f' % grocery_bill) | [
"noreply@github.com"
] | noreply@github.com |
04ab58ced188affbe5375710d236b62a2a8728a9 | fe356f30f79dd5815ff9b3373eb77d8ffc7076fb | /python/Class.py | 8a021bc1ca29dd8266ea851f6e6aaeedbffc1189 | [] | no_license | paolosabatini/ISTAT_HealthAnalysis | a3b6e9b0a135b0c650bcddfbdf3acccf42f7d3b7 | 3063d3e784f8cc87e1f0ad99be12b0b161372ad5 | refs/heads/master | 2020-03-27T14:34:24.408296 | 2019-04-28T11:58:57 | 2019-04-28T11:58:57 | 146,670,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import os
from Converter import *
class Interview:
def __init__(self, dic):
self.id = dic['PID']
self.geo = geoConverter(dic['RIP'])
self.smokeflag = smokeConverter(dic['SK1'])
| [
"paolosbtn@gmail.com"
] | paolosbtn@gmail.com |
88fde4953ea93f45918c4891940b3b494d26ae2f | 7623d4ca5cacb259a1b2e7a98b1e8a3011592348 | /SICP/examples/ex2_83.py | b372d8db084f7f17d5cb1e2e2f63db57d0db0e8f | [] | no_license | nextdesusu/Learn-Python | 3b875ab5093844fe64cc13e717a3637bdfe62a9a | 3212059408eec27ee2ed359ac9d691b3d061372f | refs/heads/master | 2022-01-29T07:39:11.915177 | 2019-07-21T14:18:10 | 2019-07-21T14:18:10 | 198,063,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | def gcd(a, b):
while a != 0 and b != 0:
if a > b:
a = a % b
else:
b = b % a
return a + b
#print(gcd(50, 130))
class Complex:
def __init__(self, real, imag = 0):
self.real = real
self.imag = imag
def __str__(self):
... | [
"noreply@github.com"
] | noreply@github.com |
ecadda233d55e5a381cea2a473aabeb40e553cf4 | f32e9b464a8c9fb7f5238935cfb5f83e840269e6 | /chat.py | 9bba623185a4235e003e9897cc735374256095c4 | [] | no_license | DavidArmendariz/python-chatbot | c192fc5f310d7c069c2a58b165ff8d90a1ceff2b | c7df66d4e0ae64c79ab75cc5cb58690efa677c23 | refs/heads/master | 2022-12-18T18:38:38.375681 | 2020-09-28T19:10:11 | 2020-09-28T19:10:11 | 258,566,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from app import app, db
from app.models import User, Message, Chatroom
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'User': User, 'Message': Message, 'Chatroom': Chatroom} | [
"darmendariz1998@outlook.com"
] | darmendariz1998@outlook.com |
67b2476bf0da69a387ba3b0eac38cf08671c1edc | c539a8c5ea536f96eb83139f4988186dee796232 | /venv/Scripts/pasteurize-script.py | 5f7ae5b191cec1993e357b5bd347a3dc9070d062 | [] | no_license | risabhmishra/RisChat | 10afd0414ab82013607ce5f378ba9a7f8c337b1a | 4a7e773fe0fb0b2d140ec090f542cac85d11dc2f | refs/heads/master | 2020-03-21T20:30:45.039376 | 2018-06-28T11:59:35 | 2018-06-28T11:59:35 | 139,011,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #!"C:\Users\Risabh Mishra\PycharmProjects\beeware\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.16.0','console_scripts','pasteurize'
__requires__ = 'future==0.16.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"rishabh.mshr@yahoo.in"
] | rishabh.mshr@yahoo.in |
a612fd302a3b107dc189f3aaa42b33aacb217e12 | f6c9907b2eaa7c4d9b48cf9d8605abe3181fff3b | /lovelips/migrations/0008_auto_20150624_0628.py | 76bd87c717236377a64b2c336ca9e0fdb2c28b28 | [] | no_license | sukmadyu/lovelips | c109a43577e6528d97cd3cfa61dc4eb6397f7403 | d21e9b023a8ad8444cf7071dab10bca428d70ed3 | refs/heads/master | 2021-01-17T07:02:43.279803 | 2015-10-06T10:25:52 | 2015-10-06T10:25:52 | 37,252,838 | 0 | 0 | null | 2016-05-02T05:02:49 | 2015-06-11T09:48:13 | CSS | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('lovelips', '0007_auto_20150624_0627'),
]
operations = [
migrations.AlterField(
model_name='alternatif',
... | [
"sukmadyu@gmail.com"
] | sukmadyu@gmail.com |
32bc36980bd85af045910d5303f1b1c037b8938f | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/RSG/RSGfragments/RSGravitonToGammaGamma_kMpl01_M_5750_TuneCP5_13TeV_pythia8_cfi.py | dbf0343665487d8f89199e7c5e5a6aaec7a57103 | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,324 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
1fd6d943b7777ef60139bbb6ed83f5e7cd902b6a | fa6374867b4dad8942a4948de66e6308022e1f77 | /module01/01_hello.py | 900faf99f6a64d0541c4826083fed0bde23a17e7 | [] | no_license | jzapanta-snhu/it-140-zapanta-examples | b6410b174c96c25870b08dbfb93ece985024ee94 | 8084fefa165f8c95e80d86097dcc5b14905c97e0 | refs/heads/master | 2021-07-17T10:46:57.769190 | 2020-06-27T14:02:06 | 2020-06-27T14:02:06 | 185,298,725 | 0 | 2 | null | 2020-06-27T14:02:07 | 2019-05-07T01:36:56 | Python | UTF-8 | Python | false | false | 284 | py | # NAME: Javier E. Zapanta (j.zapanta@snhu.edu)
# DATE: 2019 May 06
# COURSE: IT-140
# PROGRAM: Hello World
#
# PURPOSE: This program will print "Hello World" to the terminal.
# RUNTIME: Python 2+
# prints "Hello World" with an implied \n (new line)
print("Hello World")
| [
"j.zapanta@snhu.edu"
] | j.zapanta@snhu.edu |
c0f92a66d2fe479fac5c31e96b84fa83550c245b | 9a543f49b15d43aa33fb663ae9ff917515cba022 | /posts/migrations/0006_auto_20170702_1912.py | 6497eaca1bab94d68b46dab4e03af0e8a9fa0098 | [] | no_license | zhl146/PortfolioBackend | 7f356e5615621c0e22c93e569f6f329522bb36cd | ab150c75dab0237afde7bca21357a61354284be0 | refs/heads/master | 2020-12-03T00:06:39.456963 | 2017-07-12T02:49:17 | 2017-07-12T02:49:17 | 95,988,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-02 23:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0005_auto_20170702_1256'),
]
operations = [
migrations.AlterField(... | [
"jknoxiii@gmail.com"
] | jknoxiii@gmail.com |
b12b10856a4ed41d9955fd88843bf4578be7a5d2 | 49391296cb1d28db443f518fcfd14e0e76afd3c8 | /main/migrations/0003_request.py | 53e9282b13d9ae091b62f436ed85160c8bf6a311 | [] | no_license | Ppolyak/clinic | 72e8a59f3a1841880b94469a29dad2a73d9cc672 | 3204dc575166788d3e6ab066cb0a882c7a1d11ff | refs/heads/master | 2022-07-28T11:29:12.026257 | 2020-05-16T14:48:21 | 2020-05-16T14:48:21 | 264,459,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | # Generated by Django 2.2 on 2020-05-05 11:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_auto_20190425_0242'),
('main', '0002_auto_20190424_0140'),
]
operations = [
migratio... | [
"pasha_polyakov8@mail.ru"
] | pasha_polyakov8@mail.ru |
4350a9276b09f70ffaedbc01c41f946cdbcf5634 | 5c12dea736f83d6198c9e05df01087e2e9992c03 | /tweet_collector/save_tweets.py | c2abb7a0914a190089419ec840a90b7ab82ffd31 | [
"MIT"
] | permissive | fe-bern/Twitter-Slackbot | 84f199a48509b91240c7eeac8b915d2e30312cec | 18f93472e8fb67f9d7b7de8cd595265bb608fad1 | refs/heads/main | 2023-02-18T10:58:04.772024 | 2021-01-06T15:55:24 | 2021-01-06T15:55:24 | 327,355,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #not neeeded anymore beacause get_tweets.py is directly connecting to MongoDB
import pandas as pd
import pymongo
df = pd.read_csv('tweets.csv')
# remove columns with dots and strange chars
for c in df:
if '.' in c or '#' in c:
del df[c]
# create a list of dictionaries
r = df.to_dict(orient='records')
... | [
"noreply@github.com"
] | noreply@github.com |
5d138e5360cc2f70a545930243755257cfe16faa | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/accepted/16235 나무 재테크.py | 8b87c7f358caec812d47334277bfd5184b39dafd | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from sys import stdin
# import heapq
from collections import deque
def solution(N, M, K, supplement, trees):
ground = [[5]*N for _ in range(N)]
forest = [[deque() for _ in range(N)] for _ in range(N)]
for x, y, z in trees:
forest[x-1][y-1].append(z)
for _ in range(K):
num_new_trees = ... | [
"46477711+grasshopperTrainer@users.noreply.github.com"
] | 46477711+grasshopperTrainer@users.noreply.github.com |
61ff5c8334ef68165decb5ebf79ac24e635cf43d | 8583e750cd8f9661c1ee02e41a9b9c543d82ea9a | /interface/telaLista.py | 7a9d549f8a3ae39f945a5a57ffe9200d16de47ab | [] | no_license | virgilio09/Controle-de-estoque | 4f1174b5bef3fa86ee0f7b24e65814deafdd73dd | cdf2179ed08115b06e4ad19bd2bee1f1c5bf29ba | refs/heads/main | 2023-02-25T23:24:28.003027 | 2021-02-01T13:49:02 | 2021-02-01T13:49:02 | 317,719,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,752 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class TelaListProd(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(640, 480)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("cen... | [
"jvirgiliomartins09@gmail.com"
] | jvirgiliomartins09@gmail.com |
95a72a82cd9e5ae2c7086705148b100130173937 | a5037e3408fe54bee25e26a994c2c6a39aea4de0 | /env/bin/pylint | fa81f2eaec5bbacd5cea443dcf19eddb11930a5e | [] | no_license | alexzhou124/Webchecker | cb0e5eeecd57d4a6dac97fb88bc04be5e37e6761 | a20c22217f53a103b8196fe42f91fdacb9cbdcaa | refs/heads/master | 2022-07-31T13:45:57.860415 | 2020-05-26T04:38:14 | 2020-05-26T04:38:14 | 263,674,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/alexzhou/Desktop/PyScripts/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"alexzhou@alexs-mbp.lan"
] | alexzhou@alexs-mbp.lan | |
a883fab54ea913ab199a9734c1295bcec74c8769 | 530505736a7f8017edbc60dae4be6d21f3ace122 | /Paint/Paint.py | 6baa2c8d6389c69a495470caefa78741a138365c | [] | no_license | DanielJulian/OpenCV | d31cadb78b00d39571a7bbdd95dd60c5e9c7cd32 | 11af2c4672b3e72f6c891cdf6178c9c0f600e456 | refs/heads/master | 2021-01-11T20:58:45.928325 | 2017-03-23T00:17:10 | 2017-03-23T00:17:10 | 79,223,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | import cv2
import numpy as np
from PIL import Image, ImageTk
best_cnt = 1
blank_image = np.zeros((400,600,4), np.uint8)
cx=0
cy=0
prev_x = cx
prev_y = cy
draw_color = (255,0,0)
color_radius = 40
def set_image(lbl,img):
img = Image.fromarray(img)
imgtk = ImageTk.PhotoImage(image=img)
lbl.im... | [
"dani_77@live.com.ar"
] | dani_77@live.com.ar |
9ade69f871a50e43da6e0373463e9d27ef7ea1d8 | a38be66933680563889fde53eb0d3810e2bcee83 | /func/findPath_wCurves.py | b3d663c22daaba6ad00898e793094fe2df8bae78 | [] | no_license | seanjennings960/PathPlanningChallenge | eb7999881af8bb9752f40a406896ca3ea2830d0e | ad072c9a84296e9f6e3c51ed81459aeadf843028 | refs/heads/master | 2021-01-22T04:18:27.630626 | 2017-05-25T23:58:48 | 2017-05-25T23:58:48 | 92,453,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from func.extractVisGraph import *
from func.Dijkstra import Dijkstra
from func.CurveObst import *
from func.plotting import *
import matplotlib.pyplot as plt
def findPath_wCurves(ObstacleList,CurveObstList,posStart,posGoal):
'''
Finds shortest path and path distance of given environment
Inputs: O... | [
"noreply@github.com"
] | noreply@github.com |
c192337bb5be3ec94e513aecb2a49f60b4fffbe5 | 9df06c7c286b1a88ba4d9be1f9b9722b10199a90 | /lib/decisions.py | 4a2b74cfbd0d70d2ca16d712de5eef7a44a9ce0a | [
"Apache-2.0"
] | permissive | pcn/resgate | a01b4f805a3ff7fd15072400ec3dd2280f02e213 | 3aa6cda0f31d2b1bc5a74dbac3fa22a5fb3043ed | refs/heads/main | 2023-03-31T04:55:01.226529 | 2021-04-07T01:32:35 | 2021-04-07T01:32:35 | 350,059,056 | 1 | 0 | Apache-2.0 | 2021-03-28T02:01:02 | 2021-03-21T16:45:40 | Gherkin | UTF-8 | Python | false | false | 65 | py | # Read datalog statements, and edvaluate them to make decisions
| [
"spacey-github.com@ssr.com"
] | spacey-github.com@ssr.com |
3496db296e088ab5b474d57d635d971b8e919291 | 923a14dd594191d77e30465027ece8371f28a7a6 | /web-serpng/code/serpng/jobs/services/search/user_data_tests.py | a41f50ac118c451b073c3ebd84206912b868bae7 | [] | no_license | alyago/django-web | 3af7b3389df59104eaf5e50ed9cc2c3e730fed7f | da3073eec6d676dfe0164502b80d2a1c75e89575 | refs/heads/master | 2021-01-10T19:33:45.425520 | 2013-11-21T09:43:37 | 2013-11-21T09:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | """User Data Tests."""
from django.test import TestCase
import user_data
# JSON responses from the bridge to be used in the tests.
JSON_RESPONSE_WITH_NO_USER_DATA = {
'abc': 'I am not user data'
}
JSON_RESPONSE_WITH_GOOD_USER_DATA = {
'user_data': {
'recent_searches': ['rs1', 'rs2'],
'user_e... | [
"oleg@simplyhired.com"
] | oleg@simplyhired.com |
57c3e958ff5e5090f63c4b678e890e95821acb06 | 7818a372b1cc7ef3f12decd8304ea8a1afe9f966 | /trade_portal/trade_portal/users/views/users.py | 2a5936a14c762f0609f5b28d4d61bce20f1a2eb4 | [] | no_license | koriaf/trade_portal | 7682bd6f7a1bdd0c6471bc4162f1774508de9262 | d8632fda4bab2fb5dedd42dda556ce14ecb731fa | refs/heads/master | 2023-06-06T22:17:44.580684 | 2020-08-10T07:07:10 | 2020-08-10T07:07:24 | 286,424,417 | 0 | 0 | null | 2020-08-10T08:53:18 | 2020-08-10T08:53:17 | null | UTF-8 | Python | false | false | 3,799 | py | import logging
from django.core.exceptions import ValidationError
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import (
DetailView, RedirectView, UpdateView, View
)
from django.shortcuts import... | [
"koriaf@gmail.com"
] | koriaf@gmail.com |
25894a978235e5a7ba954ec8cdc0e0047e8254e1 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/dropbox/metadata/vorbis.py | e7e48da8552e55eb862035894baafb7a71cedce1 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | #Embedded file name: dropbox/metadata/vorbis.py
from collections import defaultdict
import struct
from .utils import safe_read
def readVorbisComment(file_obj):
toret = defaultdict(list)
try:
vendor_length = struct.unpack('<I', safe_read(file_obj, 4))[0]
safe_read(file_obj, vendor_length)
... | [
"bizonix@me.com"
] | bizonix@me.com |
c7e7dfd52fef31ae09d405cc27fcade4afed608c | 99814fefd3ebe1ac34006c2e08fee7d1c504bf4c | /Database/Database/__init__.py | 9b5f901068c8ef94c618ce1301f284c63d2241e4 | [] | no_license | traustitj/TornadoMongoTest | c0d40f4d0b15f2804ed42559fe7ca69e950408ff | 8002bed6486016055eb22aaa0a33a0a6ac346ea1 | refs/heads/master | 2022-08-14T07:21:01.334987 | 2022-07-26T10:21:03 | 2022-07-26T10:21:03 | 131,761,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | import os.path
from database import ConnectDB
| [
"traustitj@mac.com"
] | traustitj@mac.com |
47063c6f9762cc541be468fe4120e733110426e3 | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/models/decision_transformer/modeling_decision_transformer.py | 959b9763d0bd48505d91336461376868845b5345 | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 43,844 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Team The HuggingFace Inc. team. 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/LIC... | [
"hz416@cam.ac.uk"
] | hz416@cam.ac.uk |
dcfed5c9629b784d51e081eff28206ae47360593 | 4aabe0322e6a922c66ab1b116f6f106cecef338d | /script/audio/deepspeech.pytorch/test_thchs30.py | bf611011bc837b824ec0d888f3aa741a27e769b4 | [] | no_license | luo-pan/make_dataset | a04c0839211824ad8e7c8e993e7e3e54cc2cf5b7 | b54599cafa13c6483129c0c39529466a0e878e8d | refs/heads/master | 2021-01-25T13:18:34.285162 | 2017-09-06T13:12:24 | 2017-09-06T13:12:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,752 | py | import argparse
import json
import torch
from torch.autograd import Variable
import os
from data.data_loader import SpectrogramDataset, AudioDataLoader
# from decoder import GreedyDecoder, BeamCTCDecoder, Scorer, KenLMScorer
from decoder import GreedyDecoder, BeamCTCDecoder
from model import DeepSpeech
os.environ["CUD... | [
"zhy8623080@163.com"
] | zhy8623080@163.com |
7dde7d7f90a82f371578edbbdd15c3b2f54ec643 | da22272ac9c9de6d3b380b3e66547055e7b01d20 | /hangouts.py | f7d0ab8e2d25056a11fd62d3e719a9b3a17f3a48 | [
"MIT"
] | permissive | kyyslauk/gtalk_export | 0f67a09c096388f91be90ca0baf6aca7bd0f4f7a | d56c408fc6df8045adf690ba9c97350ae20e096a | refs/heads/master | 2021-06-19T13:07:44.769010 | 2017-07-07T20:53:31 | 2017-07-07T20:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,772 | py | import re
import json
import time
# This code was inspired by Jay2K1's Hangouts parser. You can see the
# blogpost for the original at:
# http://blog.jay2k1.com/2014/11/10/how-to-export-and-backup-your-google-hangouts-chat-history/
# He also runs a webservice for parsing Google Hangouts JSON files at:
# http://hango... | [
"coandco@gmail.com"
] | coandco@gmail.com |
a2d5445911dce65f690596d6b01dfa4bac29a33c | 0c1d799e35f78c2d9acacb26464632231345bb4d | /In Class/stringToUpper.py | 3db28792dd57c25e0468efe4c82d841f53be16c7 | [] | no_license | MatthewSteinRWU/Computer-Vision | cc022844d1858f9b823feed2d7ba5b14aba65dfd | f1129051fe7966924b5d17ddad9e6232e0eee911 | refs/heads/master | 2020-07-12T02:56:06.892743 | 2020-01-01T23:13:51 | 2020-01-01T23:13:51 | 204,698,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/usr/bin/env python
# User interaction demo
# Get a string from the user and raise it up UPPERCASE
print "Please enter a string between 10 and 30 characters"
usrString = raw_input("-->")
print usrString.upper()
| [
"noreply@github.com"
] | noreply@github.com |
8aeb1300f85a1aaafb71ce05a4910eda695d01de | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_461.py | 5bdb3315298efd0854676b72294e5e643b54f60a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # How to query filter in django without multiple occurrences
ParentModel.objects.filter(childmodel__in=ChildModel.objects.all()).distinct()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
8c8bebf2a63b9aa9dc26ad96d1b7676e2847644f | 407e350e2b698379c89e9aee18581527549cd6f7 | /strange_counter.py | 80b3ac741ae96202889d7261e82d790522b2a824 | [] | no_license | mismayil/hackerrank | df36caee7b77e7e358ae964026a23b9a47b8f7b8 | ca0f9ab6bc272c1ba8accf2d90f4d8c24179aa42 | refs/heads/master | 2020-06-26T01:16:24.472391 | 2017-05-12T20:50:41 | 2017-05-12T20:50:41 | 74,608,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | '''
Problem: https://www.hackerrank.com/challenges/strange-code
'''
import sys
import math
t = int(input().strip())
n = t // 3
if n > 1: n = math.floor(math.log(n, 2))
if n ==0: p = 0
else: p = 3
for i in range(n-1):
p += 3 * (2 ** (i+1))
print(3 * (2 ** n) - (t - (p + 1)))
| [
"mismayilza@gmail.com"
] | mismayilza@gmail.com |
70fd281c05a5ef8edd058a4dc85a5f5d8306a24a | 1ee3dff11c22034e67f1eae4e3d11aef2d68b332 | /ex3/int_to_roman.py | 9c2b4b25c3455834f8750f62b6e72cd1c0b9511b | [] | no_license | samusdriconus/python_exercices | a4bb63f3e3cfd0982aebbe294c8b96e493f98b20 | ac4651ee4bc0eb8693c2848e65e543eb28530cac | refs/heads/master | 2021-05-19T07:02:03.093331 | 2020-03-31T23:13:53 | 2020-03-31T23:13:53 | 251,576,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from collections import OrderedDict
def int_to_roman(num):
roman = OrderedDict()
roman[1000] = "M"
roman[900] = "CM"
roman[500] = "D"
roman[400] = "CD"
roman[100] = "C"
roman[90] = "XC"
roman[50] = "L"
roman[40] = "XL"
roman[10] = "X"
roman[9] = "IX"
roman[5] = "V"
r... | [
"saidi-ouss@outlook.com"
] | saidi-ouss@outlook.com |
01fa6b59ed7388b26021f73ae8a0eed9453bd052 | 7e7400c9285dcc5dd1961c5865de35eda8ed2517 | /scrapy/kubahime/kubahime/settings.py | 244b22f57dd3ff7085ef73703f807d61eb071b46 | [] | no_license | leolulu/pystudy2 | 2ce861a82cf6d670197a9f1f60485a28206ebb7e | 1f929cdd08b2074a055e0b58b5dae3e52892c546 | refs/heads/master | 2021-06-25T11:04:59.396592 | 2020-11-12T15:51:40 | 2020-11-12T15:51:40 | 148,102,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | # -*- coding: utf-8 -*-
# Scrapy settings for kubahime project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"348699103@qq.com"
] | 348699103@qq.com |
b8baecf25dc610700a99599cda99a761076542b8 | 8c487bbf9c4193c54a5a58557968b11e220cb07a | /exercicioClassificacaoMedia.py | a24a328439c79319fbb52aded9f5da88dac32461 | [] | no_license | Dex4n/algoritmos-python | c420a0b7d17946c130a5c1419bd7c81e23583f92 | 4330929a9cce9abb1ff255001dc4b7e6e251ac04 | refs/heads/master | 2021-03-16T21:49:59.598396 | 2020-03-13T13:07:24 | 2020-03-13T13:07:24 | 246,946,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py |
nota1 = float(input("Digite o valor para a 1ª nota: "))
nota2 = float(input("Digite o valor para a 2ª nota: "))
media_aluno = (nota1 + nota2)/2
if media_aluno >= 9.0 and media_aluno <= 10.0:
print("Nota 1 do aluno: %.2f"%(nota1))
print("Nota 2 do aluno: %.2f"%(nota2))
print("Média do aluno: %.2f"%(media... | [
"alexandre_marino@outlook.com"
] | alexandre_marino@outlook.com |
0c4d74fc244e79ebb2b0c11a0c7f7fcf431d901f | 079c07c5d97eb60d36269e27309e84b25ea0aaeb | /guidehero-backend/app/managers/call_manager.py | 2df061c86f9dcff1932fc86ea2e7e2a95baf97e2 | [] | no_license | itdream-dev/python | 3aa44329673f05e2a86e1cba56cb88101c777233 | eda81b802b99f45933bdf0d22b508837cfa538f0 | refs/heads/master | 2023-03-05T12:27:42.776870 | 2020-05-11T15:54:45 | 2020-05-11T15:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # -*- coding: utf-8 -*-
from config import Ivysaur
from lib.registry import get_registry
from lib.models.call import Call
from lib.push_notifications import PushNotifications
class CallManager(object):
def __init__(self):
registry = get_registry()
self.call_repo = registry['CALL_REPO']
se... | [
"skyclean906@gmail.com"
] | skyclean906@gmail.com |
62c2ec2abae957c33caddc0e8b9e03242a0fa3df | ea3dd300fca6b79b76ab6565c8020409e917ff9d | /crawl_movie/crawl_movie/middlewares.py | c85510322e775125dac8442d080e322b658c8c98 | [] | no_license | DanerHeart/your_project | c54dd69781a4469d353a94c76673ad12a567bc27 | 0ae449227a2b3039feb6d907f84850ff6b580a34 | refs/heads/master | 2020-03-25T22:23:28.121487 | 2018-08-12T00:17:15 | 2018-08-12T00:17:15 | 144,220,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,165 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware
import random
from scrapy import signals
class MyUse... | [
"liu_baoxi@foxmail.com"
] | liu_baoxi@foxmail.com |
8fbf5d9f2722729e1ebeda7654e80b9bcd7ddc6e | ba8905e3d5448c600553472c580bf67b20d39448 | /HelloFlask/App/views/first_blue.py | 6136fdf13854bf518f51d093f7377cab1da8874f | [] | no_license | Jet-Morgan/Flask | d57cc3ac9fdbfdbf21a45afbc83c672a21476ac0 | 03957b66ce9e1326e203fffb60817719e9b2bacd | refs/heads/master | 2020-09-16T21:48:10.206726 | 2019-12-03T09:42:54 | 2019-12-03T09:42:54 | 223,896,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # coding=utf-8
from flask import Blueprint, render_template
from App.models import models, User
blue = Blueprint('blue', __name__)
@blue.route('/')
def index():
# return '我是蓝图的主页'
return render_template('index.html', msg="It is a messge from index.html")
@blue.route('/dropdb/')
def dropdb():
models.dro... | [
"15182948100@163.com"
] | 15182948100@163.com |
b6cac6e6a6498a5ee259af5f31f06bb09bf480ed | 4106383e1bc1ec191476ad8b59a0ed5bbe2b46e8 | /subm/data/s_loss_1.41586900332_r_64_c_64_folds_13_ep_50_2016-05-06-21-32_code.py | 5ac5a59990e80022bcdea4135c19e9a8cd53003a | [] | no_license | NickStupich/state_farm_neural_net | cfd70928e58af88ec9255219c5702b68391ed583 | acfc7d30001d0597ad6f76be3bd1f51724fe8e89 | refs/heads/master | 2021-06-01T00:44:00.690734 | 2016-08-07T06:40:03 | 2016-08-07T06:40:03 | 56,463,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,281 | py | # -*- coding: utf-8 -*-
import numpy as np
np.random.seed(2016)
import os
import glob
import cv2
import math
import pickle
import datetime
import pandas as pd
import statistics
import time
from shutil import copy2
import warnings
import random
warnings.filterwarnings("ignore")
from sklearn.cross_validation import tr... | [
"nick.stupich@gmail.com"
] | nick.stupich@gmail.com |
aa021563c62bd697794e0ff8f581e92b7cdbd047 | 47b9b617c9ac0de925c29368ae57e0a986bcbb02 | /DataStructures/LinkedList/ReverseLinkedList.py | 27596a804f51d7dc5b460788c9af3b43e1f3e966 | [] | no_license | YuliangZHENG6/hackerrank | 71b24100a151d7a1693cb71b602034a9b10da6b6 | 55a38303eadf3e423c84cafc1c51d72faed44ba4 | refs/heads/master | 2021-08-16T20:32:38.788273 | 2017-11-20T09:37:25 | 2017-11-20T09:37:25 | 107,589,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | """
Reverse a linked list
head could be None as well for empty list
Node is defined as
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
return back the head of the linked list in the below method.
"""
def Reverse(head):
if head == ... | [
"yuliang.zheng@epfl.ch"
] | yuliang.zheng@epfl.ch |
dcd05b317337bac479b22dcaea4f461603eaa11b | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/matriz_20200222132010.py | 8534cb3045cb3b356fb2e42fe4a210b62a5a9f3b | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import numpy as np
import os
import pylab as pl
import matplotlib.pyplot as plt
os.system("clear")
g=[
12, 23;
34, 34,
]
print (g)
"""
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 0.1)
Y = np.arange(-2, 12, 0.1)
J=np.count_nonzero(Y)
print (J)
a = [0] * J
for i in range(J):
a[i] = Y[i]
X[25]=... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
efb22923988475abe76ca7e439a4aa6b18d00cd7 | 980bf0a9af6a7c9fd41cd042ddce9cb45d7ffd6f | /taobao_scrapy/taobao_scrapy/spiders/taobao.py | bed780dfae926e595b319505b5a25375842ae629 | [] | no_license | 406410672/tb_s | 8dc73c520e762b40d001a376b763207eda42f886 | 231845a77f0cbd23b73ee5e430047f0479af4f05 | refs/heads/master | 2020-03-12T21:40:39.043364 | 2018-05-23T10:04:37 | 2018-05-23T10:04:37 | 130,832,977 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,584 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/4/18 16:43
# @Author : HT
# @Site :
# @File : taobao.py
# @Software: PyCharm Community Edition
# @Describe: Desc
# @Issues : Issues
import sys
import os
import scrapy
ROOT_PATH = os.path.join(os.path.realpath(__file__), os.pardir)
sys.path.append(... | [
"18316551437@163.com"
] | 18316551437@163.com |
b06dea7eb98b6918a57396efd4774805d8c1fe4e | 080807483ab794f1ad3974a41341454f9939075d | /Flask/flaskr/models.py | 6b06dd0ce32839c5df1e1ed14df28ffb3681d828 | [] | no_license | maru919/ramen_fortune | 8adb0fccd39dd6933942e6048a5a339b9f88ac22 | 9bfbec65cafb71f9034dcf0284fd0db061fe2313 | refs/heads/master | 2020-05-31T17:25:30.299270 | 2019-06-04T16:26:08 | 2019-06-04T16:26:08 | 190,408,040 | 0 | 0 | null | 2019-06-05T14:15:14 | 2019-06-05T14:15:14 | null | UTF-8 | Python | false | false | 728 | py | from flaskr import db
class Entry(db.Model):
__tablename__ = 'entries'
id = db.Column(db.Integer, primary_key=True)
q1 = db.Column(db.Text)
q2 = db.Column(db.Text)
q3 = db.Column(db.Text)
q4 = db.Column(db.Text)
q5 = db.Column(db.Text)
q6 = db.Column(db.Text)
q7 = db.Column(db.Text)... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.