This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Canvas from 'canvas'; | |
import { Image } from 'canvas'; | |
import axios from 'axios'; | |
export class MediaOperations { | |
// Defaults | |
public defaultOptions: any = { | |
format: 'image/png', | |
quality: 0.92, | |
width: 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def copy_blob(bucket_name, blob_name, new_bucket_name, new_blob_name): | |
"""Copies a blob from one bucket to another with a new name.""" | |
storage_client = storage.Client() | |
source_bucket = storage_client.get_bucket(bucket_name) | |
source_blob = source_bucket.blob(blob_name) | |
destination_bucket = storage_client.get_bucket(new_bucket_name) | |
new_blob = source_bucket.copy_blob( | |
source_blob, destination_bucket, new_blob_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static OWLClass getUnvisitedChild(OWLClass owl, OWLOntology pOnt){ | |
Set<OWLClassExpression> children = owl.getSubClasses(pOnt); | |
Iterator<OWLClassExpression> childIt = children.iterator(); | |
while(childIt.hasNext()){ | |
OWLClass currentChild = childIt.next().asOWLClass(); | |
if(!visited.contains(currentChild)){ | |
return currentChild; | |
} | |
} | |
return owl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package preprocessing; | |
import Evaluation.trainingDataMatrix; | |
import base.pair; | |
import base.patent; | |
import clustering.distancefunction.AbstractDistance; | |
import clustering.distancefunction.CosDistance; | |
import org.carrot2.core.LanguageCode; | |
import org.jblas.DoubleMatrix; | |
import org.jblas.MatrixFunctions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package algorithms; | |
import base.PatentCluster; | |
import base.PatstatPatent; | |
import java.util.ArrayList; | |
/** | |
* Created by sanchitalekh on 14/03/2017. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package base; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
/** | |
* Created by sanchitalekh on 12/03/2017. | |
*/ |